Skip to content
CodeKruPro

break and continue in one loop

QuizEasyPython onlyAsked in: TCS, Wipro

What does this print?

for i in range(1, 6):
    if i == 3:
        continue
    if i == 5:
        break
    print(i, end=" ")
Choose one answer.

to answer and keep your progress. Reading is free for everyone.