R

Ram Sharma • 193.86K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 171
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics