πŸ“Š Python
Q. Which of the following is correct output of this program?
Code:
1. a = 1
2. while True:
3. if a % 7 = = 0:
4. break
5. print(a)
6. a += 1
  • (A) 1 2 3 4 5
  • (B) 1 2 3 4 5 6
  • (C) 1 2 3 4 5 6 7
  • (D) Invalid syntax
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1 2 3 4 5 6

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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