Python Programming - Variables - Discussion

Discussion Forum : Variables - General Questions (Q.No. 30)
30.
Which of the following is true about the pass statement?
It is a keyword used to create empty code blocks.
It is used to terminate a loop or a function.
It is used to raise an exception.
It is not a valid keyword in Python.
Answer: Option
Explanation:

The pass statement in Python is used as a placeholder for code that has not been implemented yet.

It is a keyword that creates an empty code block and does nothing. It is commonly used when defining functions, loops, and conditional statements that will be filled in later.

Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.