Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- welcome="Welcome to our Holiday Park"
- ht=[]
- pp=[]
- bs=[]
- bv=[]
- hd=[]
- sm=[]
- wr=[]
- bt=[]
- gf=[]
- cl=[]
- for x in range (17):
- ht.append("[%.0f]"%(x+23))
- pp.append("[%.0f]"%(x+23))
- bs.append("[%.0f]"%(x+23))
- bv.append("[%.0f]"%(x+23))
- hd.append("[%.0f]"%(x+23))
- sm.append("[%.0f]"%(x+23))
- wr.append("[%.0f]"%(x+23))
- bt.append("[%.0f]"%(x+23))
- gf.append("[%.0f]"%(x+23))
- cl.append("[%.0f]"%(x+23))
- print (welcome.center(90, ' '))
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~".center(90, ' '))
- cabin=["Hetty","Poppy","Blue Skies","Bay View","Happy Days","Summer Joy","Walkers'Rest","Bertie","Green Forest Lodge","Coppice Lodge"]
- cap=[4,4,4,6,6,6,8,8,10,10]
- peak=["$400","$400","$500","$650","$695","$800","$950","$1050","$1200","$1500"]
- offpeak=["$250","$250","$350","$500","$550","$600","$750","$850","$950","$1150"]
- fmt1='{:^25}{:^25}{:^25}{:^25}'
- fmt='{:<25}{:<25}{:<25}{:<25}'
- print (fmt.format("Cabin Name","Capacity","Peak","Off-peak"))
- print(fmt.format("----------","--------","----","--------"))
- for x in range (10):
- print(fmt.format(cabin[x],cap[x],peak[x],offpeak[x]))
- print("")
- while True:
- roomlist=[0,1,2,3,4,5,6,7,8,9,-1]
- y=(int(input("Enter the desired cabin's code name")))
- if y==0:
- print('')
- print("Weeks Available for %s Cabin are the following."%(cabin[y]))
- for count in range (len(ht)):
- print(ht[count],end='')
- print('')
- print('')
- choice=(int(input("Please enter the desired week number")))
- for aa in range (len(ht)):
- if ht[aa]==choice:
- del(aa)
- elif y==1:
- print("Weeks Available for %s Cabin are the following."%(cabin[y]))
- for count in range (len(pp)):
- print(pp[count],end='')
- choice=(int(input("Please enter the desired week number")))
- del(pp[choice-(len(pp))])
- elif y==2:
- print("Weeks Available for %s Cabin are the following."%(cabin[y]))
- for count in range (len(bs)):
- print(bs[count],end='')
- choice=(int(input("Please enter the desired week number")))
- del(bs[choice-(len(bs))])
- elif y==3:
- print("Weeks Available for %s Cabin are the following."%(cabin[y]))
- for count in range (len(bv)):
- print(bv[count],end='')
- choice=(int(input("Please enter the desired week number")))
- del(bv[choice-(len(bv))])
- elif y==4:
- print("Weeks Available for %s Cabin are the following."%(cabin[y]))
- for count in range (len(hd)):
- print(hd[count],end='')
- choice=(int(input("Please enter the desired week number")))
- del(hd[choice-(len(hd))])
- elif y==5:
- print("Weeks Available for %s Cabin are the following."%(cabin[y]))
- for count in range (len(sm)):
- print(sm[count],end='')
- choice=(int(input("Please enter the desired week number")))
- del(sm[choice-(len(sm))])
- elif y==6:
- print("Weeks Available for %s Cabin are the following."%(cabin[y]))
- for count in range (len(wr)):
- print(wr[count],end='')
- choice=(int(input("Please enter the desired week number")))
- del(wr[choice-(len(wr))])
- elif y==7:
- print("Weeks Available for %s Cabin are the following."%(cabin[y]))
- for count in range (len(bt)):
- print(bt[count],end='')
- choice=(int(input("Please enter the desired week number")))
- del(bt[choice-(len(bt))])
- elif y==8:
- print("Weeks Available for %s Cabin are the following."%(cabin[y]))
- for count in range (len(gl)):
- print(gl[count],end='')
- choice=(int(input("Please enter the desired week number")))
- del(gl[choice-(len(gl))])
- elif y==9:
- print("Weeks Available for %s Cabin are the following."%(cabin[y]))
- for count in range (len(cl)):
- print(cl[count],end='')
- choice=(int(input("Please enter the desired week number")))
- del(cl[choice-(len(cl))])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement