English

Write the syntax of the while loop.

Advertisements

Question

Write the syntax of the while loop.

Short/Brief Note
Advertisements

Solution

The syntax of while loop in Python has the following syntax:

Syntax:

while:
statements block 1
[else:
statements block 2]

shaalaa.com
Control Structure
  Is there an error in this question or solution?
Chapter 6: Control Structures - Evaluation [Page 88]
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×