Is it possible to implement a Python for range loop without an iterator variable?

Is it possible to do following without the i?

for i in range(some_number):
    # do something

If you just want to do something N amount of times and don’t need the iterator.

15 Answers
15

Leave a Comment