C-16-Q143mediumsingle_mcq
Which of the following correctly continues an if block in Python (right after the if line)?
Which of the following correctly continues an if block in Python (right after the if line)?
- aan unindented statement
- ban indented statement that forms the body of the if
- canother
ifon the same line - dnothing — the body must be on the same line
ব্যাখ্যা
In Python, the body of an if statement must be indented beneath the if line, and this indentation defines which statements belong to the block. An unindented line would fall outside the if block.