The range end value for printing up to 8

Fill in the blanks · Basic · §7.1 Repeating

The code should print 2, 4, 6, and 8, one per line, and then print end last. Fill in the blank for the end value of range().

Code with blanks

for i in range(2, ____, 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.