πŸ“Š Python
Q. What will be the output of the following Python code?
Code:
i = 0
while i < 3:
    print(i)
    i += 1
else:
    print(0)
  • (A) 0 1 2 3 0
  • (B) 0 1 2 0
  • (C) 0 1 2
  • (D) error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 0 1 2 0

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
183
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Vaibhav Shukla
Publisher
πŸ“ˆ
93%
Success Rate