Computer Science
What is the common structure of Python compound statements?
Python Control Flow
42 Likes
Answer
The common structure of a Python compound statement is as shown below:
<compound statement header>:
<indented body with multiple simple\
and/or compound statements>
It has the following components:
- A header line which begins with a keyword and ends with a colon.
- A body containing a sequence of statements at the same level of indentation.
Answered By
22 Likes
Related Questions
State whether the following statement is True or False :
The range( ) function can only be used in for loops.
State whether the following statement is True or False :
An if-elif-else statement is equivalent to a nested-if statement.
What is the importance of the three programming constructs?
What is empty statement in Python? What is its need?