Q. What are compound statements?
Answer :-
A compound statement represents a group of statements executed as a unit. The component statements of Python are written in a specific pattern as shown below:
<compound statement header> :
<indented body containing multiple simple and/or compound statements>
That is a compound statement has :
• A header line which begins with a keyword and ends with a colon.
• A body consisting of one or more Python statements, each indented inside the header line. All statements in the body are at the same level of indentation.
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )