Please enable JavaScript to use CodeHS

AP Computer Science Principles in Python

Lesson 7.1 Tuples

Description

  • A tuple is a heterogenous, immutable data type that stores an ordered sequence of things.
  • Heterogenous means that a single tuple can store different types
  • You can access pieces of a tuple using indices
  • You can find the length of a tuple using len
  • You can concatenate tuples with other tuples

Objective

Students will be able to:
* Create and store information in tuples.
* Explain the characteristics of a tuple.


Activities

These are all the activities included in the lesson

7.1.1 Tuples
7.1.2 Tuples
7.1.3 A Tuple Is a Sequence
7.1.4 A Tuple is Heterogenous
7.1.5 Tuples With a Single Element
7.1.6 Concatenating Tuples
7.1.7 Fix This Tuple
7.1.8 Citation
7.1.9 Diving Contest
7.1.10 Coordinate Pairs