Extras 4.1: Python range() Function
Python for-statement
So far, we have seen the for-statement in the form
for i in range(5):
do_something()
Let’s look in more detail at the range() function.
So far, we have seen the for-statement in the form
for i in range(5):
do_something()
Let’s look in more detail at the range() function.