Showing bad data
Seeing errors
Sometimes, errors in data can be hard to see. For example...

Adela
Should be Snorlax with an l (letter l), not Snor1ax with a 1 (the digit).
Rock, paper, scissors cheater
Write a program to play rock, paper, scissors. It always wins.
Bonus: transactions
Teagan's Poet
Bonus lessons are optional.
Let's write a basic transaction processing system (TPS - not that one). A TPS tracks business events, like sales, inventory control... the regular stuff of business operations.
Computed fields
Earlier, on Python with Pets
Here's a goats' scores data set we've been using, with errors removed.
Reading data sets
What is a list?
Adela functionates
Hey, Adela! Can you write me a function? Called circle_circumference. You send it the radius of a circle, and it returns its circumference.
Bonus: making webpages
Bonus lessons are optional. If you know HTML or are curious about dynamic webpages, this might interest you.
We had versions of the name tag program that output to the screen, a network printer, or a file. You can also make a webpage from the output. Let's see how.
First, here's a function making the HTML for one name tag.
Practice: more functions
What will the following output, if the user enters 2, 3, and 5?
Practice: functions
Finish this.
Mars or bust!
Why is repeating code a problem?
Pagination
- Previous page
- Page 2
- Next page