+ 2

What is the purpose pass statement in python?

Pass statement in python

18th Jul 2019, 12:49 PM
Ashish Yadav
Ashish Yadav - avatar
3 Réponses
+ 3
It is used when the statement is required syntactically, but you do not want that code to execute. The pass statement is the null operation; nothing happens when it runs
18th Jul 2019, 12:54 PM
Ankul Chaudhary
Ankul Chaudhary - avatar
+ 1
pass statement − The pass statement in Python is used when a statement is required syntactically but you do not want any command or code to execute.
18th Jul 2019, 1:12 PM
Ashish Yadav
Ashish Yadav - avatar
- 1
pass statement: to run empty loops
23rd Jul 2019, 9:31 AM
Isha Gupta