@classmethod def from_str(cls, str_arg): name, score, total = str_arg.split(',') return cls(name, score, total) @classmethod def from_tuple(cls, tup_arg): name, score, total = tup_arg return cls(name, score, total) def __str__(self): return ("Name: " + str(self.name) + " Score: " + str(self.__score) + " Total: " + str(self.total))