Files
2025-08-04 12:58:29 -04:00

25 lines
774 B
Python

#Konditorei Coffee shop
def main():
pounds = float(input("How many pounds of coffee would you like to order?: "))
coffee_price = float(15.50)
shipping_price = float(0.99 * pounds + 4.50)
grand_total = coffee_price + shipping_price
print("That comes to a grand total of $" , grand_total)
askaboutrepeating()
# Ask about repeating
def askaboutrepeating():
print("Thanks for ordering with me! Would you like to order some more?")
answer = str(input("Please respond with yes (y) or no (n) :"))
if answer == "y":
main()
if answer == "n":
exit
else:
print("Woah, something about what you typed was definitley not correct.")
askaboutrepeating()
# Call the main app to kick off the app
main()