Study the Python code and click the line number(s) that contain the bug.
Each call should return a fresh list: [1] and then [2]. Instead the second call prints [1, 2].
Ready to try it?
Create a free account and subscribe to take "Shared Default List". Earn 150 XP and track your internship progress.
Already have an account? Sign in