Suppose I have some data like:
data[0] = ['I want to make everything lowercase']
data[1] = ['How Do I Do It']
data[2] = ['With A Large DataSet']
How do I repeatedly call the lower() function on all the elements of data, to make all the of strings in lowercase?
I have tried {k.lower(): v for k, v in data.items()}, but I get an error saying that 'list' object has no attribute 'items'.
I have also tried using .lower() and it is giving me the same AtrributeError.
 
     
     
    