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.
5.7m questions
7.4m answers