What will be the output of the following Python code? i = 1 while True: if i%3 == 0: break print(i) i + = 1

Questions & AnswersCategory: Programming LanguageWhat will be the output of the following Python code? i = 1 while True: if i%3 == 0: break print(i) i + = 1
Geek Boy Staff asked 2 years ago

What will be the output of the following Python code?

i = 1
while True:
    if i%3 == 0:
        break
    print(i)
 
    i + = 1

a. 1 2 3
b. error
c. 1 2
d. none of the mentioned