Calling variables in Python (local vs global)

后端 未结 0 1759
心在旅途
心在旅途 2020-12-06 04:54

The below works and gives 8:

def mypow(a,b):
    c=a**b
    print (c)

mypow(2,3)

But the below doesn\'t:

def mypow(a,b):
             


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