What signifies the end of a statement block or suite in Python?
a)A comment
b)end
c)}
d)A line that is indented less than the previous line.
Answers
Answered by
10
Answer:
d) is the answer.......
Answered by
1
Answer:
A line that is indented less than the previous line signifies the end of a statement block or suite in Python.
Explanation:
Indentation:
- A block is a group of statements that have a specific purpose.
- Curly braces {} are used to define a block. The beginning of a block starts with opening curly braces { and the block is ended by a closing curly brace}.
- Whenever a block is defined using the curly braces, its indentation is changed meaning its distance to the right is increased.
- All statements belonging to the same block have the same level of indentation.
- Indentation prevents confusion and errors when a lot of looping is involved.
- When the block of statement is over, the indentation of the next line of code is reduced.
Therefore, the end of a statement block or suite in Python is signified by d) a line that is indented less than the previous line.
#SPJ2
Similar questions