for num in range(4):
print(num)
The output will be:
0
1
2
3
The for loop iterates through the numbers in the range function and prints those same numbers to the console.
8.1m questions
10.7m answers