This week’s topics
Lists
- Creating and changing a list
- Using indexes
What you will be able to do
- 4.1 Use lists, tuples and dictionaries.
Activity
Write a program that keeps a shopping list.
Study materials
Further resources
- Introduction to Python Programming, 3.4: List basics · PDF · OpenStax Introduction to Python Programming (2024), 3.4: creating lists and using indexes, pp. 78–80 · for registered students
- Introduction to Python Programming, 9.1–9.3: Working with lists · PDF · OpenStax Introduction to Python Programming (2024), 9.1–9.3: changing, sorting and using lists, pp. 211–218 · for registered students
- Think Python, ch. 10: Lists · PDF · Downey, Think Python 2e (Green Tea Press), ch. 10: lists, indexes and list operations, pp. 89–102 · for registered students
- Analysis of student misconceptions using Python as an introductory programming language · Open-access article · Johnson et al. (2020), Computing Education Practice (CEP '20), ACM. How Python lists behave with +, += and references, a common trap. · for registered students
Materials marked “for registered students” open in the student portal, which is set up as soon as you receive final acceptance.