CBSE Class 12 Computer Science Question 63 of 105

Python Revision Tour — Question 17

Back to all questions
17
Question

Question 17

Describe the concepts of block and body. What is indentation and how is it related to block and body?

Answer

A block in Python, represents a group of statements executed as a single unit. Python uses indentation to create blocks of code. Statements at same indentation level are part of same block/suite and constitute the body of the block.