Python Programming - Conditional Statements - Discussion

Discussion Forum : Conditional Statements - General Questions (Q.No. 23)
23.
Which of the following is the correct syntax for a while loop?
while condition:
    # code block
while (condition)
    # code block
do while condition:
    # code block
for condition in while:
    # code block
Answer: Option
Explanation:
The correct syntax for a while loop in Python is to use the while keyword followed by a condition.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.