Question Detail
Question
Which of the following correctly represents the basic syntax for a `while` loop in Python?
Correct Answer
Option B is the correct answer.
Detailed Explanation
Page 61 of the document explicitly shows the syntax:
while condition: body, emphasizing the colon and indentation for the loop body.
Hint
Remember Python's reliance on colons and indentation for defining code blocks, similar to `if` statements and function definitions.