adplus-dvertising
frame-decoration

Question

What is the output of the following?
for i in range(10):
    if i == 5:
        break
    else:
        print(i)
else:
    print("Here")

a.

0 1 2 3 4 Here

b.

0 1 2 3 4 5 Here

c.

0 1 2 3 4

d.

1 2 3 4 5

Posted under Python

Answer: (c).0 1 2 3 4

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