I've attached my code. Please review it tell me the reason of error. Explain it?

后端 未结 0 1464
甜味超标
甜味超标 2020-12-03 11:35

My Code-

x=10
def fun():
    x=x+2
    print(x)
fun()
print(x)

And the Output Error-

Unbound         


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