To make a variable part of the object. You have to put self in front of it.
You also misspelled strength.
line 24 could also do.
self.prot = 'class'Otherwise it a local variable.
You also misspelled strength.
line 24 could also do.
while(self.prot not in ['warrior', 'priest', 'thief', 'mage']):
99 percent of computer problems exists between chair and keyboard.