Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 10
- def funcao_v_global(valor):
- global x
- x = valor
- def funcao_v_local(valor):
- x = valor
- funcao_v_global(15)
- print(x)
- funcao_v_local(33)
- print(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement