Python: lists and functions
Year 9 · Secondary School · Information and Communication Technology (ICT)
In this unit you will: create lists, use indexes and recognise the parts of a function; use parameters, arguments and return values, and list methods; trace list operations and functions and spot common errors; choose and write code with lists, loops and functions for real tasks; review lists, functions and how they work together.
There are 50 exercises to practice: interaktive Aufgaben. Every answer gets instant feedback, free and without signing up.
What's included
- Create lists · use indexes and recognise the parts of a function
- Use parameters · arguments and return values · and list methods
- Trace list operations and functions and spot common errors
- Choose and write code with lists · loops and functions for real tasks
- Review lists · functions and how they work together
Example questions
- What is a list in Python?
- True or false? “In Python, the first item in a list has index 1.”
- nums = [4, 7, 2, 9]. What is nums[1]?