+ 1
(def) help
def hero(): a1 = input( "Name/ ") print("hello Hero" + a1) set_hp: str = '25' set_at = '1' print("hp = " + set_hp) print("attack = " + set_at) print(hero()) # how do I get (a1) out of (def hero) # print ((a1) + dam) # name -2
3 ответов
+ 3
in addition to Coder Kitten :
a1=""
def hero() :
global a1
....
0
thx