CBSE Class 10 Computer Applications Question 5 of 26

Python Conditionals and Loops — Question 3

Back to all questions
3
Question

Question 3

Which of the following is used to define a block of code (e.g., body of if or body of a loop) in Python ?

  1. { }
  2. ( )
  3. indentation
  4. Quotation
Answer

indentation

Reason — Indentation is used to define a block of code in Python.