adplus-dvertising
frame-decoration

Question

What is the output of the following?
i = 1
while True:
    if i%2 == 0:
        break
    print(i)
    i += 2

a.

1

b.

1 2

c.

1 2 3 4 5 6 …

d.

1 3 5 7 9 11 …

Posted under Python

Answer: (d).1 3 5 7 9 11 …

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following?

Similar Questions

Discover Related MCQs