Thinkycap logo
Worksheets

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.

Practice nowPython: lists and functionsYear 9 · Secondary School · Information and Communication Technology (ICT) · 50 exercisesPractice now

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

  1. What is a list in Python?
  2. True or false? “In Python, the first item in a list has index 1.”
  3. nums = [4, 7, 2, 9]. What is nums[1]?

Solve these and more questions now →

More topics in Information and Communication Technology (ICT)