adplus-dvertising
frame-decoration

Question

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

a.

5 6 7 8 9 10

b.

5 6 7 8

c.

5 6

d.

error

Posted under Loops in Python Python

Answer: (b).5 6 7 8

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