Completed Exercise 7-2 Restaurant Seating
This commit is contained in:
parent
24f4df0991
commit
da38d97cf8
9
Chapter_07/7-02_restaurant_seating.py
Normal file
9
Chapter_07/7-02_restaurant_seating.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Exercise 7-2 Restaurant Seating
|
||||||
|
# Learning Objective: Asking for input & utilize an if statement for response.
|
||||||
|
|
||||||
|
party = input("How many people are in your party? \n")
|
||||||
|
|
||||||
|
if int(party) > 8:
|
||||||
|
print("Sorry, there's currently a wait list for that many people. \nPlease wait..")
|
||||||
|
else:
|
||||||
|
print("Your table is ready!")
|
||||||
Loading…
x
Reference in New Issue
Block a user