Berikutnya

Python Global Variables (☠ Don't Use them!) #14

13 Tampilan· 09/06/25
Donbright
Donbright
Pelanggan
0

Scope refers to the availability of variables and functions in certain parts of the code.
🔥 Want to learn Python, the right way? Get my interactive Python course: https://bit.ly/right-python.

In this video, we will learn about the concept of global and local variables in Python. Local variables are variables declared inside the function body and they cannot be accessed from outside the function. Global variables are the variables declared outside of a function or in the global scope.

~
Run Python Online: https://www.programiz.com/pyth....on-programming/onlin
Programs in this video: https://github.com/programiz/p....ython-course/blob/ma
Python Global, Local and Nonlocal Variables (text-based tutorial): https://www.programiz.com/pyth....on-programming/globa
Python Functions: https://youtu.be/-Bkupx9gX0o?l....ist=PL98qAXLA6afuh50

Watch our videos and revise them with our Python App!
Download here for Android: https://bit.ly/learn-python-android
Download here for iOS: https://apple.co/3iPm6Sx

Timestamps:
0:00 Intro
0:23 Local Variables
2:28 Global Variables
5:16 Recap

Find Programiz elsewhere:
Facebook: https://www.facebook.com/programiz
Instagram: https://www.instagram.com/_programiz/
LinkedIn: https://www.linkedin.com/company/programiz
Website: https://www.programiz.com
-------------------------------------------------

Python Global Variables (☠ Don't Use them!) #14

#python #learnprogramming #programiz #localvariables #globalvariables

Menampilkan lebih banyak

 0 Komentar sort   Sortir dengan


Berikutnya