2 Lists: What’s on the menu?
In this chapter
- Erik starts using menus in his coffee shop
- Erik uses Python lists for his drinks, flavors, and toppings
- Erik uses
for
loops to print out his lists - Simon explains how computers store numbers and strings
- Erik learns an important thing about list indices
The next day, Erik was ready to continue working on his Coffee Shop application. He remembered that Simon said something about missing products that customers might enter in the dialogue. He came to his brother and asked, “You said yesterday that customers can enter something that I don’t have in the shop. What should I do about it?”
“Remember the last time you were in a coffee shop or restaurant. How did you know what you could order?”
“They had a ...
Get A Pythonic Adventure now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.