Created
March 27, 2019 13:38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class resort(object): | |
vil=['Elektra','Persephone','Artemis','Kouros'] | |
vipVil=['Zeus','Alexandrian'] | |
guestList=[] | |
reservationList=[] | |
resIDList=[0] | |
def __init__(self): | |
print("Welcome to Myconos Hidden Cove!") | |
def setGuest(self,g): | |
self.guestList.append(g) | |
def setReservation(self,r): | |
self.reservationList.append(r) | |
def getresID(self): | |
return self.resIDList[-1] | |
def updateResIDList(self): | |
i=self.getresID()+1 | |
self.resIDList.append(i) | |
return(self.resIDList[-1]) | |
def printLists(self): | |
print(f" The guest list is: {self.guestList}") | |
print(f" The reservation list is: {self.reservationList}") | |
print(f" The resID list is: {self.resIDList}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment