Question-94: When you run below program, what would happen?
while(True):
print("Continuous Printing")
print("******************")
print("This line is not part of while loop")
- There would be zero iteration.
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering Python Certification Material
Answer: C, D
Exp:
- Whatever you want to include as part of your iteration, has to be indented.
- All indented statements are part of While Loop Body.
-
You can access to full explanation to question and answer from this page.
While loop with zero iteration
while(False): print("Continuous Printing")
You can access to full explanation to question and answer from this page. |
- Line 2nd and 3rd would never be reached.