This will capitalize them but only if there are no nested lists.
t = ['this','that', ['other']]
def capitalize_nested(t):
res = []
for s in t:
res.append(s.capitalize())
return res
print capitalize_nested(t)
I can't figure out how to get it to print out a nested list having all of the strings start with a capital letter. I must be missing something obvious, this just has me stumped.