filmov
tv
When Python expects an indented code, you can use the 'pass' statement to ignore error #shorts

Показать описание
In Python, the pass statement is considered as no operation statement, means it consumes the execution cycle like a valid python statement but nothing happens actually when the pass is executed.
The pass statement is much like a comment, but the python interpreter executes the pass statements like a valid python statement, while it ignores the comment statement completely.
It is generally used to indicate “null” or unimplemented functions and loops body.
#shorts #python #pass #learnpython #youtubeshorts
The pass statement is much like a comment, but the python interpreter executes the pass statements like a valid python statement, while it ignores the comment statement completely.
It is generally used to indicate “null” or unimplemented functions and loops body.
#shorts #python #pass #learnpython #youtubeshorts