Python Programming - Loops - Discussion

Discussion Forum : Loops - General Questions (Q.No. 14)
14.
Which statement is used to iterate over a sequence and execute a block of code as long as a specified condition is True?
for
while
do-while
if
Answer: Option
Explanation:
The while loop is used to iterate over a sequence and execute a block of code as long as a specified condition is True.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.