Skip to content

Instantly share code, notes, and snippets.

@marttp
Created January 1, 2023 10:59
Show Gist options
  • Save marttp/18c88a7cfa0c6842bfd7049d83e44960 to your computer and use it in GitHub Desktop.
Save marttp/18c88a7cfa0c6842bfd7049d83e44960 to your computer and use it in GitHub Desktop.
def order_fried_chicken():
# Decide on type of chicken
chicken_type = input("Would you like to order chicken nuggets or a whole chicken? ")
# Order sides or not
order_sides = False
sides_choice = input("Would you like to order any sides with your chicken? ")
if sides_choice.lower() == "yes":
order_sides = True
# Choose sides (if ordering sides)
if order_sides:
sides = input("Which sides would you like to order? ")
# Process order
print("Processing order...")
# Pay for order
print("Please pay for your order.")
payment_method = input("How would you like to pay? ")
if payment_method.lower() == "credit card":
print("Please enter your credit card information.")
elif payment_method.lower() == "cash":
print("Please hand over the cash to the cashier.")
else:
print("Sorry, we do not accept that payment method.")
# Wait for order to be prepared
print("Thank you for your order. Your chicken will be ready shortly.")
order_fried_chicken()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment