I am trying to convert the elements of a list of list of lowercase. This is what is looks like.
print(dataset)
[[\'It\', \'went\', \'Through\', \'my\', \'shi
Either use map
map(str.lower,line)
Or list comprehension (which is basically syntactic sugar)
[x.lower() for x in line]
And this process can be nested for the entire dataset
[[x.lower() for x in line] for line in dataset]
And if you want to join all lines into one, use reduce:
reduce(list.__add__,[[x.lower() for x in line] for line in dataset])