← All tasks
🌳
Intermediate

Mutable Default Argument

⏱ 7 min ⭐ 200 XP 🔁 3 attempts allowed

What you'll do

What is the best fix?

Scenario

You wrote def add(item, items=[]) and calls share data.

Ready to try it?

Create a free account and subscribe to take "Mutable Default Argument". Earn 200 XP and track your internship progress.

Already have an account? Sign in