Pass Statement in python || No Operation || Pass || Flow Control

Publicado em: 09 Outubro 2021
no canal de: Ddhruv Arora
28
6

In this video, I have discussed the Pass statement.

It can be used in Loops, Functions, and Conditionals.

The main use of the pass statement is to make an empty statement executable as empty statements are not allowed in python.

For ex:

def f1():

This function will give an error as its body is empty and hence it's called an empty expression.

but to avoid the error we can put pass statement in the body of that function that is,

def1():
pass
A tip: Try to add all the things that we have done till, date in a single function

Thank you for watching and reading.

Happy Coding ahead 👨‍🎓🌟✨

#python #pythonprogramming #coding #learning #teaching #youtuber #pythonfrombasics.


Nesta página do site você pode assistir ao vídeo on-line Pass Statement in python || No Operation || Pass || Flow Control duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Ddhruv Arora 09 Outubro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 28 vezes e gostou 6 espectadores. Boa visualização!