Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Not first solution in Clear category for Party Invitations by swagg010164
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, f_name):
self.friends.append(f_name)
def del_friend(self, f_name):
del self.friends[self.friends.index(f_name)]
def send_invites(self, message):
for i in self.friends:
i.invite = self.name + ': ' + message
Nov. 9, 2019