Price:$11.11

Loading

Python Project Workbook for Beginners, Book 2: Build a Cafe Till Program, 14 Lessons, 64 Exercises, Answer Key, Printable PDF

Includes Etsy Purchase Protection

You can only make an offer when buying a single item

Highlights

  • Digital download
  • Digital file type(s): 3 PDF, 1 ZIP

Book 2: build one complete Python program. Digital PDF download, A4 printable, Python files and answer checker included.

Robot Cafe is the sequel to Space Pets Python. Over 14 lessons you build a real cafe till, one piece at a time: it asks the customer what they want, checks what they type, takes stock off the shelf, prints a receipt, reads its menu from a CSV file and saves tonight's stock to a new file. Mission 2 puts all 88 lines together.

WHAT IS INSIDE
- 14 two-page lessons in two stages. At the counter: input(), int(), isdigit(), asking until the answer is right, serving until "done", changing the stock, the receipt. In the back room: with open(), strip and split, three names at once, the menu built from a file, writing tonight's stock, try / except, and the whole program in order.
- 64 exercises: Read it, Trace it, Spot the bug and Write it, plus 2 missions
- Every example shows the real screen: what the program printed and what the customer typed
- The whole till printed in full, a cheat sheet of everything new, a guide to what the checker tells you, an error decoder and a test-your-till table taken from real runs
- A Before you start page listing what book 1 taught, with a three-question warm-up so you can check you are ready

WHAT YOU GET
- Robot_Cafe_WORKBOOK.pdf - 44 pages, A4, colour
- Robot_Cafe_WORKBOOK_BLACK_AND_WHITE.pdf - the same 44 pages for a black-and-white printer
- Robot_Cafe_ANSWER_KEY.pdf - 12 pages: every screen and every file the answers produce
- Robot_Cafe_Python_files.zip - cafe_till.py (the finished till), cafe_till_starter.py (the six functions, ready for your own main section), check_my_answers.py, menu.csv and orders.csv

Every screen and every file in the book and the key came from running the code with the typing each question gives.

WHAT YOU NEED
- A printer (A4, double-sided is best) and a pen for the lessons.
- Python, free from python.org, to run the till and the checker. This book does not repeat how to install Python; Space Pets Python covers that. The checker types the customer's answers into your program for you.
- The basics Space Pets Python teaches, from that book or elsewhere: f-strings, if / elif / else, lists and for loops, while loops, your own functions, dictionaries and counting per group.

WHO IT IS FOR
Adults who can write small pieces of Python but have not yet built a whole program that talks to a person and reads and writes files.

WHAT THIS IS NOT
It is not a first Python book: it starts where Space Pets Python ends and does not teach the basics again. No web apps, no libraries, no classes.

Instant download. Nothing is posted.

The robot pictures were made with Canva's AI design generator and chosen by me. The lessons, code, exercises and answers were written and checked separately, and every screen was produced by running the code.

Instant Download

Your files will be available to download once payment is confirmed.  Here's how.

Instant download items don’t accept returns, exchanges or cancellations. Please contact the seller about any problems with your order.

Etsy Purchase Protection
Shop confidently on Etsy knowing if something goes wrong with an order, we've got your back for all eligible purchases — see program terms