What is the significance of a pass statement in Python
Answers
Answered by
1
Answer:
Definition and Usage:-
The pass statement is used as a placeholder for future code.
When the pass statement is executed, nothing happens, but you avoid getting an error when empty code is not allowed.
Empty code is not allowed in loops, function definitions, class definitions, or in if statements.
Example:-
Using the pass keyword in an if statement:
a = 33
b = 200
if b > a:
pass
hopefully this will help you better!!!
please mark my answer brainliest if you like it
plz follow me and support me
thank you !!!!!!!
Similar questions