Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Party Invitations by ssk8
class Friend:
def __init__(self, name):
self.name = name
self.invite = "No party..."
def show_invite(self):
return self.invite
class Party:
def __init__(self, name):
self.name = name
self.__friends = []
def add_friend(self, friend):
self.__friends.append(friend)
def send_invites(self, time):
for friend in self.__friends:
friend.invite = f'{self.name}: {time}'
def del_friend(self, friend):
self.__friends.remove(friend)
July 2, 2018
Comments: