# scope = The region that a variable is recognized # A variable is only available from inside the region it is created. # A global and locally scoped version of a variable can be created name = "Bro" # global scope (available inside & outside functions) def display_name(): name = "Code" # local scope (available only inside this function) print(name) display_name() print(name)
Bro! There´s any other function where variables can be allocated as Local? I mean, now i know that when I DEF a function, I cant use outside the variables inside that function. There´s any other space like DEF that makes a variable a local variable? Thanks bro, hugs from Colombia
# scope = The region that a variable is recognized
# A variable is only available from inside the region it is created.
# A global and locally scoped version of a variable can be created
name = "Bro" # global scope (available inside & outside functions)
def display_name():
name = "Code" # local scope (available only inside this function)
print(name)
display_name()
print(name)
Thank you for making this so easy to understand!!! Excellent info!
thank you man about this hard work
well explained! thank you! you are much appreciated
So easy to understand. Thank you.
thank you for making this video
I finally understand it.
Thank you Bro Bro.
Mr worldwide!
nice!
Thanks bro!
Thanks bro
yes
thanks bro code!
Thanks a lot
Lovely
❤️
im a bro ye im a bro
appreciate your work
Thanks Bro
THANK YOU
Thanks Bro!
noice
thanks
Bro!
There´s any other function where variables can be allocated as Local?
I mean, now i know that when I DEF a function, I cant use outside the variables inside that function. There´s any other space like DEF that makes a variable a local variable?
Thanks bro, hugs from Colombia
Wow!
let's go
commented
Literally binging you
TH-cam Algorithm comment
hi everyone
👍🧪
cool man. continue🦾
Thank you bro