A

Akash Lawaniya • 9.58K Points
Tutor III

Q. What will be the output of the following code snippet?

Code:
count = 0
while(True):
   if count % 3 == 0:
       print(count, end = " ")
   if(count > 15):
       break;
   count += 1
  • (A) 0 1 2 ….. 15
  • (B) Infinite Loop
  • (C) 0 3 6 9 12 15
  • (D) 0 3 6 9 12
  • Correct Answer - Option(C)
  • Views: 584
  • 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.

Be the first to start discuss.


Question analytics