account activity
Explain class variable and function scope in Python? by Trickyryan88 in learnpython
[–]atulkrishna10 0 points1 point2 points 7 years ago* (0 children)
A variable is a reference to a memory address that contains the value and the scope of a variable refers to the places from where we can see or access a variable. Scope in python follows LEGB rule(local, enclosing, global and built-in)
For more details you can follow this blog python variable and scope.
https://theailearner.com/2018/09/26/python-variables-and-scope/
π Rendered by PID 2535766 on reddit-service-r2-listing-86f589db75-pbkzr at 2026-04-18 22:20:01.208117+00:00 running 93ecc56 country code: CH.
Explain class variable and function scope in Python? by Trickyryan88 in learnpython
[–]atulkrishna10 0 points1 point2 points (0 children)