πŸ“Š Python
Q. What will be the output of this statement?
Code:
1. i = 0
2. while i < 5:
3. print(i)
4. i += 1
5. if i == 3:
6. break
7. else:
8. print(0)
  • (A) 1 2 3
  • (B) 0 1 2 3
  • (C) 0 1 2
  • (D) 3 2 1
πŸ’¬ Discuss
βœ… Correct Answer: (C) 0 1 2

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
183
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
95%
Success Rate