Computer Science
Describe the concepts of block and body. What is indentation and how is it related to block and body?
Python Funda
37 Likes
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.
Answered By
18 Likes
Related Questions
What are variables ? How are they important for a program ?
Consider the given expression: not True and False or True
Which of the following will be correct output if the given expression is evaluated?
- True
- False
- None
- Null
What are data types in Python? How are they important?
Write the names of any four data types available in Python.