liveBook · Manning

Python

As explained in A Pythonic Adventure: From Python basics to a working web app

Python 3 is the third major version of the Python programming language.

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

How A Pythonic Adventure: From Python basics to a working web app covers it

How deep it goes
Builds a first runnable program with print(), input(), variables, file naming, and editor execution, without advancing beyond basic interaction.
Examples
Uses a coffee-shop greeting, customer prompts, and a receipt listing a name, drink, flavor, and topping.
What it assumes
Assumes no programming experience and teaches installation, running programs, variables, and basic input from the beginning.
What you can do after
Build a small Python application that collects order details and prints a personalized receipt.
How it connects
Connects Python with variables, input(), print(), code editors, and Python 3 mode.

Also explained in

Compare how 26 books explain Python →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of A Pythonic Adventure: From Python basics to a working web app. The section links point to the parts of the book it draws on.