What will be the output of the following Python code ?
i = 0 while i < 5: print(i) i += 1 if i == 3: break else: print(0)
Answers
Answered by
11
Explanation:
upr dekho ..
kyuki python mere samjh se bahar hai
Attachments:
Answered by
2
Answer:
The output for the given Python program is 001020340.
Explanation:
The given program is as:
i = 0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)
It will give the following as result:
001020340
Hence, the answer is 001020340.
Similar questions
Environmental Sciences,
2 months ago
Math,
2 months ago
Hindi,
4 months ago
Hindi,
4 months ago
English,
10 months ago
World Languages,
10 months ago
Hindi,
10 months ago