Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.05 KB | None | 0 0
  1. welcome="Welcome to our Holiday Park"
  2. ht=[]
  3. pp=[]
  4. bs=[]
  5. bv=[]
  6. hd=[]
  7. sm=[]
  8. wr=[]
  9. bt=[]
  10. gf=[]
  11. cl=[]
  12. for x in range (17):
  13. ht.append("[%.0f]"%(x+23))
  14. pp.append("[%.0f]"%(x+23))
  15. bs.append("[%.0f]"%(x+23))
  16. bv.append("[%.0f]"%(x+23))
  17. hd.append("[%.0f]"%(x+23))
  18. sm.append("[%.0f]"%(x+23))
  19. wr.append("[%.0f]"%(x+23))
  20. bt.append("[%.0f]"%(x+23))
  21. gf.append("[%.0f]"%(x+23))
  22. cl.append("[%.0f]"%(x+23))
  23. print (welcome.center(90, ' '))
  24. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~".center(90, ' '))
  25. cabin=["Hetty","Poppy","Blue Skies","Bay View","Happy Days","Summer Joy","Walkers'Rest","Bertie","Green Forest Lodge","Coppice Lodge"]
  26. cap=[4,4,4,6,6,6,8,8,10,10]
  27. peak=["$400","$400","$500","$650","$695","$800","$950","$1050","$1200","$1500"]
  28. offpeak=["$250","$250","$350","$500","$550","$600","$750","$850","$950","$1150"]
  29. fmt1='{:^25}{:^25}{:^25}{:^25}'
  30. fmt='{:<25}{:<25}{:<25}{:<25}'
  31. print (fmt.format("Cabin Name","Capacity","Peak","Off-peak"))
  32. print(fmt.format("----------","--------","----","--------"))
  33. for x in range (10):
  34. print(fmt.format(cabin[x],cap[x],peak[x],offpeak[x]))
  35. print("")
  36. while True:
  37. roomlist=[0,1,2,3,4,5,6,7,8,9,-1]
  38. y=(int(input("Enter the desired cabin's code name")))
  39. if y==0:
  40. print('')
  41. print("Weeks Available for %s Cabin are the following."%(cabin[y]))
  42. for count in range (len(ht)):
  43. print(ht[count],end='')
  44. print('')
  45. print('')
  46. choice=(int(input("Please enter the desired week number")))
  47. for aa in range (len(ht)):
  48. if ht[aa]==choice:
  49. del(aa)
  50. elif y==1:
  51. print("Weeks Available for %s Cabin are the following."%(cabin[y]))
  52. for count in range (len(pp)):
  53. print(pp[count],end='')
  54. choice=(int(input("Please enter the desired week number")))
  55. del(pp[choice-(len(pp))])
  56. elif y==2:
  57. print("Weeks Available for %s Cabin are the following."%(cabin[y]))
  58. for count in range (len(bs)):
  59. print(bs[count],end='')
  60. choice=(int(input("Please enter the desired week number")))
  61. del(bs[choice-(len(bs))])
  62. elif y==3:
  63. print("Weeks Available for %s Cabin are the following."%(cabin[y]))
  64. for count in range (len(bv)):
  65. print(bv[count],end='')
  66. choice=(int(input("Please enter the desired week number")))
  67. del(bv[choice-(len(bv))])
  68. elif y==4:
  69. print("Weeks Available for %s Cabin are the following."%(cabin[y]))
  70. for count in range (len(hd)):
  71. print(hd[count],end='')
  72. choice=(int(input("Please enter the desired week number")))
  73. del(hd[choice-(len(hd))])
  74. elif y==5:
  75. print("Weeks Available for %s Cabin are the following."%(cabin[y]))
  76. for count in range (len(sm)):
  77. print(sm[count],end='')
  78. choice=(int(input("Please enter the desired week number")))
  79. del(sm[choice-(len(sm))])
  80. elif y==6:
  81. print("Weeks Available for %s Cabin are the following."%(cabin[y]))
  82. for count in range (len(wr)):
  83. print(wr[count],end='')
  84. choice=(int(input("Please enter the desired week number")))
  85. del(wr[choice-(len(wr))])
  86. elif y==7:
  87. print("Weeks Available for %s Cabin are the following."%(cabin[y]))
  88. for count in range (len(bt)):
  89. print(bt[count],end='')
  90. choice=(int(input("Please enter the desired week number")))
  91. del(bt[choice-(len(bt))])
  92. elif y==8:
  93. print("Weeks Available for %s Cabin are the following."%(cabin[y]))
  94. for count in range (len(gl)):
  95. print(gl[count],end='')
  96. choice=(int(input("Please enter the desired week number")))
  97. del(gl[choice-(len(gl))])
  98. elif y==9:
  99. print("Weeks Available for %s Cabin are the following."%(cabin[y]))
  100. for count in range (len(cl)):
  101. print(cl[count],end='')
  102. choice=(int(input("Please enter the desired week number")))
  103. del(cl[choice-(len(cl))])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement