I have the following code which I use to map a nested list in Python to produce a list with the same structure.
>>> nested_list = [[\'Hello\', \'Wo
Map is certainly a much cleaner way of doing what you want. You can nest the list comprehensions though, maybe that's what you're after?
[[ix.upper() for ix in x] for x in nested_list]