Dec-08-2019, 12:03 AM
Always post your code.
You're going to have to convert each member of your split list to lowercase before looking up in the dictionary:
You're going to have to convert each member of your split list to lowercase before looking up in the dictionary:
>>> mystr = "Time is never lost - it's just replaced" >>> mylist = mystr.split() >>> mylist[3].lower() 'lost' >>>