CBSE Class 11 Computer Science Question 30 of 80

Conditional and Looping Constructs — Question 13

Back to all questions
13
Question

Question 13

In Python, which of the following will create a block in a compound statement?

  1. colon
  2. statements indented at a lower, same level
  3. indentation in any form
  4. {}
Answer

statements indented at a lower, same level

Reason — In Python, a block in a compound statement is created by indenting the statements to the same level.