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

Publié le: 09 octobre 2021
sur la chaîne: 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.


Sur cette page du site, vous pouvez voir la vidéo en ligne Pass Statement in python || No Operation || Pass || Flow Control durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Ddhruv Arora 09 octobre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 28 fois et il a aimé 6 téléspectateurs. Bon visionnage!