Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- countries=["Italy","Spain","Portugal","Marocco"]
- cruise_companies=["MSC", "Costa", "HAL"]
- my_dic={"Italy":["Civitavecchia","Genova"],
- "Spain":["Malaga","Cartagena","Santa Cruz"],
- "Morocco":["Tangeri"],
- "Portugal":["Funchal"]
- }
- print("*******************************")
- print("WELCOME TO PA Cruises")
- print("**************************\n")
- name=input("Hello dear! What is your name?")
- print("\nWelcome,"+name+"! We hope to help you book your dream cruise!")
- print("\nWe offer cruise in various countires. At the moment the only avalibale are the following:\n")
- i=1
- for c in my_dic.keys():
- print(str(i)+"."+str(c))
- i+=1
- print()
- country=int(input("Which country are you interested in ? Please type the index number: "))
- my_country=countries[country-1]
- print()
- print(my_country +"" + "is an amazing choice indeed!" + "In" +""+ my_country + "we offer these port cities:\n")
- i=1
- for v in my_dic[my_country]:
- print(str(i)+"."+str(v))
- i+=1
- print()
- city=int(input("From which of the cities you wanna depart: "))
- my_city=my_dic[my_country][city-1]
- print()
- print(my_city+ "is a great choice! Now its time to choose whch company you wanna try or retun to.\n")
- i=1
- for d in cruise_companies:
- print(str(i)+ "."+ str(d))
- i+=1
- print()
- trip=int(input("When ready, please type the number of the cruise line: "))
- my_trip=cruise_companies[trip-1]
- print()
- print(my_trip + "is a perfect choice. We are sure you will enjoy your time on board.")
- nop=int(input("\n So," +name+ ". So you must be traveling with a few people. "
- "To help us plan you trip accordingly and better, tell us the number of people coming along: "))
- if nop==0:
- print("\n Oh so its more of a solo trip")
- else:
- print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement