C-18-Q008mediumsingle_mcq
A while loop is used in Python programmes to execute a statement:
A while loop is used in Python programmes to execute a statement:
- aExactly once
- bTwo or more times subject to a condition
- cOnly when no condition is given
- dAfter the programme ends
ব্যাখ্যা
A while loop repeats a statement or block as long as its condition remains true, allowing two or more executions depending on the condition. It is used for condition-controlled repetition rather than a fixed single run.