Sep 25: Tuples, Return Values
Meet in King 248
Learning Objectives
After today's class, you should be able to:
- Group a fixed set of values into a tuple, such as
(x, y). - Return several values, and unpack them into separate variables.
- Write a docstring for a function (following Google's Style).
Lesson Outline
Presentation [10 min]
- Tuples: grouping values, multiple return values
Mini Lecture [10 min]
- returns.py
- Run in Python Tutor
Lab (Part 2) [30 min]