Jun-16-2019, 05:57 PM
Hi,
In case you want to learn proper Python: work yourself through the official tutorial at docs.python.org
Regards, noisefloor
Quote: But you say it is a bad pattern for looping through a list ?Because it's a useless anti-pattern. Python can iterate directly over iterables. I explained that to you earlier (I think yesterday?) in another one of your "need help on homework" thrads in detail. So have a look there, I will not repeat here again.
In case you want to learn proper Python: work yourself through the official tutorial at docs.python.org
Regards, noisefloor