Computer Science
An empty/null statement in Python is:
- go
- pass
- over
- ;
Python Control Flow
1 Like
Answer
pass
Reason — The pass statement is an empty/null statement in Python that does nothing and acts as a dummy statement.
Answered By
3 Likes
Related Questions
Find the output of the following Python program:
for x in range(1, 20, 3): print(x, end =',')- 1,20,3,
- 1,4,7,10,13,16,19,
- 13,6,9,12,15,18,
- 20,40,60,80,100,
What abandons the current iteration of the loop?
- continue
- break
- stop
- infinite
In Python, which of the following will create a block in a compound statement?
- colon
- statements indented at a lower, same level
- indentation in any form
- {}
Assertion (A): When a set of statements is indented under the same block, starting from the same indentation, it is said to be a compound statement.
Reasoning (R): Compound Statement begins with a header ending with a colon (:) sign and the statements under the same indentation are marked as a block.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.