Learn Python - Variable Scopes

Publié le: 17 juillet 2020
sur la chaîne: Tech Programmer
37
2

In Python, variables are defined inside a specific scope. The variable defined in one scope may not be available in another scope. This video talks about local scope of variable where a variable defined inside a function is not accessible outside the function. We talk about global scope which is outside any function or class definition. We can access and modify the global variable using global keyword which is very bad practice.

Python doesn't have block level scope. This video discusses that point as well.

#Python #LearnProgramming
If you like our content, click on SUBSCRIBE button and click on Bell icon to receive latest and greatest updates of my video lessons.

Follow us on Facebook, Twitter, Instagram

Facebook Link:   / techprogrammer1  
Twitter Link:   / techprogrammer1  
Tumblr Blog: https://www.tumblr.com/blog/techprogr...


Sur cette page du site, vous pouvez voir la vidéo en ligne Learn Python - Variable Scopes durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Tech Programmer 17 juillet 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 37 fois et il a aimé 2 téléspectateurs. Bon visionnage!