[Tutor] Variable Question

Bryon Adams bryonadams at openmailbox.org
Sat Nov 19 14:50:40 EST 2016


On 11/18/2016 08:16 PM, Alan Gauld via Tutor wrote:
> for index, item in enumerate(prefix):
>     prefix[index] = item[1]
>
>

I forgot about enumerate! That helped me clean up and actually finish my 
next exercise as I was having trouble working for my lists the way I was 
previously.

Thank you very much =)



More information about the Tutor mailing list