Python Programming - Conditional Statements - Discussion

Discussion Forum : Conditional Statements - General Questions (Q.No. 17)
17.
What does the pass statement do in an if block?
Skips the current iteration of a loop
Raises an exception
Terminates the program
Serves as a placeholder for empty code block
Answer: Option
Explanation:
The pass statement in an if block is used as a placeholder for an empty code block, ensuring there is no syntax error.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.