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