What signifies the end of a statement block or suite in python?
Answers
Answered by
10
- Notice that there is no token that denotes the end of the block. Rather, the end of the block is indicated by a line that is indented less than the lines of the block itself. Note: In the Python documentation, a group of statements defined by indentation is often referred to as a suite.
Answered by
1
A line that is indented less than the lines of the block itself signifies the end of a statement block or suite in python.
- In Python, a block or suit is a collection of statements that are a part of a function or different statement.
- The same level of indentation is maintained for the statements in a suit or block.
- When a block is ended then no token is used to indicate that.
- In Python, indentation by whitespace is used when the blocks are highlighted.
Similar questions