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.
Python foundations · 5 minutes
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.