i'd like to know: what's the difference between these two:
return "-".join([c.upper() + c.lower() * i for i,c in enumerate(txt)])
return "-".join([c.upper() + c.lower() * i for c,i in enumerate(txt)])
I just changed the 'i' with the 'c' and the whole code doesn't work. Is there a simple explanation?