I want something that should look like this but it probably looks quite different:
for i, idx in enumerate(range (0, length, step)):
# do something
Basically, i need to enumerate all the occurrences of "step" in the range to use as an index when iterating.
Downvoter care to explain why?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire