The end of range and the number of iterations
Predict the output · Basic · §7.1 Repeating
Predict the output without running the code.
Code
for i in range(2, 8, 2):
print(i)
print("end")Solve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.