Python 3 is a programming language used here to turn a coffee-shop idea into a simple interactive application. The first steps begin with installing an editor, writing a greeting, and running it. section 1.0 section 1.1 section 1.2
Build the coffee-shop program one small step at a time:
- Install Mu or another Python editor, then select Python 3 mode. section 1.1
- Run a greeting with print(), save the file with a .py extension, and check the output. section 1.2
- Collect changing customer information with input() and store responses in variables. section 1.2
A first coffee-shop application
Ask for a customer’s name, drink, flavor, and topping, then print the order as a receipt. This turns different answers into a reusable interaction instead of hard-coding one order. 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!")
View the complete first version of the coffee-shop application, including prompts, variables, and receipt-style output. section 1.2

























