class Player:
def __init__(self):
self.name = ""
self.score = 0
def set_name(self, new_name):
self.name = new_name
def set_score(self, new_score):
self.score = new_score
def get_name(self):
return self.name
def get_score(self):
return self.score
Comments
Leave a comment