Page 1 of 1

What will be the output of the following Python code?

Posted: Wed Jul 13, 2022 7:44 pm
by answerhappygod
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