Question: class Char: def init(self, name = ,cclass = Warrior, stats = [1,50,5,5,0,True,False,'False'): self.c = cclass self.name = name self.stats = {'LVL:stats[0], 'HP':stats[1), 'ATK':stats[2], 'DEF':stats 3].
class Char: def init(self, name = ",cclass = "Warrior", stats = [1,50,5,5,0,True,False",'False'): self.c = cclass self.name = name self.stats = {'LVL:stats[0], 'HP':stats[1), 'ATK':stats[2], 'DEF':stats 3]. 'EXP':stats 4], 'ALIVE':stats[5], 'POISONED':stats[6], 'FROZEN':stats 7]} self.calc_level - question: what wrong with this code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
