So I am attempting to find letters within strings and perform actions based on whether it finds them. So far I have this:
name = easygui.enterbox("What is your name?");
term1 = 'i'
term2 = 'a'
position1 = name.find(term1)
position2 = name.find(term2)
if(position1 != -1 and position2 != -1 and position1 < position2):
easygui.msgbox("Congratulations! You recieve a $3000 bonus.")
bonus = True
...which works fine. My question is, how would I be able to revise it (as simply as possible please) so it finds the capital letters "I" and "A", and performs the same actions as "i" and "a" to lead to the bonus?
EDIT: I am attempting to search for both simultaneously (like combinations in the name that contain "ia", "Ia", "IA", or "iA"; the letters do not have to necessarily have to be next to each other, just in that particular order).