Practice Test Geeks home

Mettl Coding Fundamentals and Logic 4

What is the output of the following code?
for i in range(1, 6):

if i % 2 == 0:

print(i, end=' ')

Select your answer