Q. What will be the output of the following Python code?
Code:
i = 2
while True:
if i%3 == 0:
break
print(i)
i += 2
β
Correct Answer: (B)
2 4
i = 2
while True:
if i%3 == 0:
break
print(i)
i += 2
You must be Logged in to update hint/solution