Advertisement
christinne_davis

Untitled

Dec 13th, 2019
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. countries=["Italy","Spain","Portugal","Marocco"]
  2. cruise_companies=["MSC", "Costa", "HAL"]
  3. my_dic={"Italy":["Civitavecchia","Genova"],
  4. "Spain":["Malaga","Cartagena","Santa Cruz"],
  5. "Morocco":["Tangeri"],
  6. "Portugal":["Funchal"]
  7. }
  8.  
  9. print("*******************************")
  10. print("WELCOME TO PA Cruises")
  11. print("**************************\n")
  12. name=input("Hello dear! What is your name?")
  13. print("\nWelcome,"+name+"! We hope to help you book your dream cruise!")
  14. print("\nWe offer cruise in various countires. At the moment the only avalibale are the following:\n")
  15. i=1
  16. for c in my_dic.keys():
  17. print(str(i)+"."+str(c))
  18. i+=1
  19. print()
  20.  
  21. country=int(input("Which country are you interested in ? Please type the index number: "))
  22. my_country=countries[country-1]
  23. print()
  24. print(my_country +"" + "is an amazing choice indeed!" + "In" +""+ my_country + "we offer these port cities:\n")
  25. i=1
  26. for v in my_dic[my_country]:
  27. print(str(i)+"."+str(v))
  28. i+=1
  29. print()
  30. city=int(input("From which of the cities you wanna depart: "))
  31. my_city=my_dic[my_country][city-1]
  32. print()
  33. print(my_city+ "is a great choice! Now its time to choose whch company you wanna try or retun to.\n")
  34. i=1
  35. for d in cruise_companies:
  36. print(str(i)+ "."+ str(d))
  37. i+=1
  38. print()
  39. trip=int(input("When ready, please type the number of the cruise line: "))
  40. my_trip=cruise_companies[trip-1]
  41. print()
  42. print(my_trip + "is a perfect choice. We are sure you will enjoy your time on board.")
  43. nop=int(input("\n So," +name+ ". So you must be traveling with a few people. "
  44. "To help us plan you trip accordingly and better, tell us the number of people coming along: "))
  45. if nop==0:
  46. print("\n Oh so its more of a solo trip")
  47. else:
  48. print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement