Комментарии:
# 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)
commented
ОтветитьThank you for making this so easy to understand!!! Excellent info!
Ответить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
Literally binging you
ОтветитьThanks Bro
ОтветитьThanks Bro!
Ответитьthank you man about this hard work
Ответитьthanks
Ответитьnoice
Ответитьhi everyone
ОтветитьThank you bro
ОтветитьI finally understand it.
Ответитьim a bro ye im a bro
appreciate your work <3
let's go
ОтветитьSo easy to understand. Thank you.
ОтветитьLovely
Ответитьit's so goddamn simple
ОтветитьWow!
Ответитьcool man. continue🦾
ОтветитьThank you Bro Bro.
Ответитьthanks bro code!
ОтветитьThanks bro!
ОтветитьThanks bro
Ответитьyes
ОтветитьMr worldwide!
Ответить❤️
ОтветитьThanks a lot
Ответитьnice!
Ответить