Answer the question
In order to leave comments, you need to log in
Static vocabulary in the classroom. How to fix?
class Person():
member = {"lleg" : 2,"rleg" : 2,"larm" : 2,"rarm" : 2}
hero = Person()
enemy = Person()
hero.member["lleg"] = 1
enemy.member["larm"] = 1
print (str(hero.member["larm"]) + " " + str(enemy.member["lleg"])) # 1 1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question