I think I got it idk if its sound though
haha didn't see your reply yeah pretty much same thing but yours is a bit more clean so ill go with that but thank you.
def test(text): list1 = ['1', '2', '3', '4', '5'] list2 = ['6', '7', '8', '9', '10'] for word in text.split(): if word.lower() in list1: x = list1.index(text) return list2[x]
haha didn't see your reply yeah pretty much same thing but yours is a bit more clean so ill go with that but thank you.