[ login to save ]
[ follow @TFisPython on x ]
mutation — why your code mysteriously breaks
4 / 8
mutation and the action-at-a-distance bug
The function modifies the list it receives. What does the final
print
show?
Your prediction
Submit prediction
Or run the code →
Show hint 1
⌘↵ runs the editor.
continue →
main.py
Booting Python…
run
⌘↵
Output
[promptdojo:~]$
_
Show prompt
park a thought