Skip to main content

Python foundations · 5 minutes

Understand a shared list

Get feedback on your answer. No account needed.

What does this Python code print?

tasks = ["read"]
other = tasks
other.append("build")
print(len(tasks))

Enter the exact output as one line.

Your answer
Need a small hint?

Assignment binds another name to the same list.

This helps us choose when to schedule your next review.