According to rule global variable can be accesses from anywhere then why this code is showing error.kindly explain

前端 未结 0 1553
借酒劲吻你
借酒劲吻你 2021-01-12 00:03

Why the given code shows error. def funn(): print(a) a=100 print(a) a=20 funn() print(a)

According to rule global variable can be accesses from anywhere then why thi

相关标签:
回答
  • 消灭零回复
提交回复
热议问题