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 =)

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to