Unit 5 - Data and calculations

Students learn about how data structures such as lists and tuples are abstractions that allow us to manipulate many pieces of data as if they were a single object. They also learn about how to use random numbers to introduce some controlled irregularity in their models.

Students also see code that focuses on text and numbers instead of pictures and learn about the difference between truncating and rounding when converting to integers, about the utility of modular arithmetic for generating periodic functions on the integers, and about how to perform simple business calculations such as discounts and sales tax.

Unit Objectives

  • Use lists and tuples to represent data
  • Create and interpret