i was trying to come up with a way to get a list of words like "yes" in all possible (but common) ways like lower cased and upper case and capitalized . and then i found out you cant put two words in this function (the words "sup" & "hello") . is there a way possible to be able to have all the words in one list with this function or should start over ?
def case_insensetive(text) :
insensetive_string = [text.lower(),text.upper(),text.capitalize()]
print (insensetive_string)
try :
case_insensetive("sup","hello")
except :
raise Exception ("you screwed something")