Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Party as a Named list solution in Clear category for Party Invitations by flpo
class Named:
def __init__(self, name):
self.name = name
class Friend(Named):
invitation = 'No party...'
def show_invite(self):
return self.invitation
class Party(Named, list):
add_friend, del_friend = list.append, list.remove
def send_invites(self, time):
for f in self: f.invitation = f'{self.name}: {time}'
June 21, 2018
Comments: