Use print() to make a Python program speak. It writes a greeting, a value, or several pieces of an order to the program’s output. section 1.2
A coffee shop greeting
A first program can display “Welcome to Erik’s Coffee Shop!” Running it immediately shows the greeting, and additional print() calls can present a customer’s name, drink, flavor, topping, and a thank-you message. section 1.2
Listing 1.1 The first version of the coffee shop application
print("Welcome to Erik's Coffee Shop!")
name = input("Please enter your name: ")
drink = input("Please enter your drink: ")
flavor = input("Please enter your flavor: ")
topping = input("Please enter your topping: ")
print("Here is your order, ", name)
print("Main product: ", drink)
print("Flavor: ", flavor)
print("Topping: ", topping)
print("Thanks for your order!")
Explore a complete first version of the coffee shop application, including print() calls that display collected order details. section 1.2




