Unable to return a variable from a function, when the function is called inside the same function. Programming Language: Python

后端 未结 0 388
误落风尘
误落风尘 2020-12-29 23:57
def m():
    m1 = input()
    m1.lower()
    if m1 in [\'a\', \'b\', \'c\', \'d\', \'e\', \'f\', \'g\', \'h\', \'i\']:
        return m1
    else:
        m()
f= m()         


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