View Single Post
Old 11-10-2011, 04:18 PM   #6
smoothrolla
Member
smoothrolla began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Nov 2011
Device: kindle
Quote:
chaley, not charley.
sorry, I wasnt sure

Quote:
The enumerate operator returns the index and the value (a tuple in python terms), which in this case is the index and the lowercase version of the value. Because l1lcase and l1 are parallel arrays, the l1[idx] gets the equivalent item for the one in l1lcase, which is the cased version.
Great thanks, i wanted to code something like that but unsure how in this language, very frustrating.

I come up with a slightly different way of doing it, posted a minute before your reply so not sure if you saw it, its probably laughable mind you

thanks
smoothrolla is offline   Reply With Quote