repl.it
Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
def kinds_attraction_5(x1,x2,x3,x4,x5,x6,x7,x8,x9,x10):
  epilogi_city=str(input("\n\twhich city are you going to visit; {:s},{:s},{:s},{:s}: ".format(x1,x2,x3,x4)))
  epilogi_attraction=str(input("\n\twhat kind of landmarks are you interested in; {:s},{:s},{:s},{:s},{:s},{:s}:".format(x5,x6,x7,x8,x9,x10)))
  
  while epilogi_city!=x1 and epilogi_city!=x2 and epilogi_city!=x3 and epilogi_city!=x4 and epilogi_attraction!=x5 and epilogi_attraction!=x6 and epilogi_attraction!=x7 and epilogi_attraction!=x8 and epilogi_attraction!=x9 and epilogi_attraction!=x10:
      epilogi_city=str(input("\n\twhich city are you going to visit; {:s},{:s},{:s},{:s}: ".format(x1,x2,x3,x4)))
      epilogi_attraction=str(input("\n\twhat kind of landmarks are you interested in; {:s},{:s},{:s},{:s},{:s},{:s}:".format(x5,x6,x7,x8,x9,x10)))    
  if epilogi_city==x1:
      if epilogi_attraction==x5:
          print('\n\tSEA LIFE London Priority','\n\tSEA LIFE London Behind the Scenes','\n\tLondon 24 Hour Hop On Hop Off Bus Tour with SEA LIFE London','\n\tCombo Package London Sightseeing')
      elif epilogi_attraction==x6:
          print(x6)
      elif epilogi_attraction==x7:
          print(x7)
      elif epilogi_attraction==x8:
          print('\n\tThe British Museum','\n\tDesign Museum','\n\tImperial War MuseumLondon','\n\tTransport Museum','\n\tMuseum of London',
'\n\tNatural History Museum','\n\tNatural History Museum','\n\tRoyal Museums Greenwich','\n\tScience Museum',
'\n\tVictoria and Albert Museum','\n\tBank of England Museum')
      elif epilogi_attraction==x9:
          print(x9)  
      else : 
          print(x10)
  elif epilogi_city==x2:
     if epilogi_attraction==x5:
          print(x5)
     elif epilogi_attraction==x6:
          print(x6)
     elif epilogi_attraction==x7:
          print(x7)
     elif epilogi_attraction==x8:
          print(x8)
     elif epilogi_attraction==x9:
          print(x9)  
     else : 
          print(x10)
  elif epilogi_city==x3:
     if epilogi_attraction==x5:
          print(x5)
     elif epilogi_attraction==x6:
          print(x6)
     elif epilogi_attraction==x7:
          print(x7)
     elif epilogi_attraction==x8:
          print(x8)
     elif epilogi_attraction==x9:
          print(x9)  
     else : 
          print(x10)
  elif epilogi_city==x4:
      if epilogi_attraction==x5:
          print(x5)
      elif epilogi_attraction==x6:
          print(x6)
      elif epilogi_attraction==x7:
          print(x7)
      elif epilogi_attraction==x8:
          print(x8)
      elif epilogi_attraction==x9:
          print(x9)  
      else : 
          print(x10)
  
  
       
    
  
  
kinds_attraction_5('London','Paris','Athens','Rome','aquarium','art_gallery','church','museum','park','zoo')
?