← Course home

OPTIONAL · ABOUT 3 MINUTES

Check the Python basics

The algorithms guide assumes you can read simple Python lists, loops and functions. This is a quick self-check so you can choose a comfortable starting point.

This quick check covers list indexing, loops, functions and adding to a list. It does not test algorithm knowledge. It is guidance only; every lesson stays open.

Question 1. What does `values[1]` read?
values = [4, 7, 9]
Question 2. How many times does this loop run?
for item in [2, 5, 8]:
    print(item)
Question 3. What happens when `double(3)` is called?
def double(number):
    return number * 2
Question 4. After this line, what is in `items`?
items = [1, 2]
items.append(3)
Answer all four questions to see the explanations.