As Larz60+ told you, you can't call
lower
on a list (or a dictionary) for that matter. It doesn't make sense does it? Turning something to lowercase only makes sense if that something is a string. A list of strings is not a string! If you want to do that to all the items in a list, for example, either write a for
loop, or a list comprehension to produce a new list.