Advertisement
HBSB

2.9 This and that and the other

Feb 22nd, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. phrase = input("Where would you like to have dinner tonight?")
  2.  
  3. if phrase == "The Point" or phrase == "Puffing Billy" or phrase == "The Maltsters":
  4.   print ("Great.  I've booked a table for us for 7.00pm")
  5. else:
  6.   print ("Decide between The Point, Puffing Billy or The Maltsters and I will book a table.")
  7.  
  8. if phrase == "The Point" or phrase == "Puffing Billy" or phrase == "The Maltsters":
  9.   print ("I'll book our table for 7pm.")
  10. print ("We'll leave the house at 6.45.")
  11. phrase = input ("Which one?")  
  12. if phrase == "The Point" or phrase == "Puffing Billy" or phrase == "The Maltsters":
  13.   print ("That's fine.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement