Default Arguments

Built once, reused forever.

0 / 8 solved
0/8 solved
Question Tags Difficulty Success
1. Default Evaluated Once, At Definition
default-argumentsdefinition-time +1
Medium 60%
2. The Classic Mutable Default Trap
mutable-defaultaliasing +1
Medium —
3. The None-Sentinel Fix
none-sentinelmutable-default +1
Medium 50%
4. What __defaults__ Actually Holds
dunder-defaultsmutable-default +1
Medium 27%
5. Mutating vs Rebinding the Default
mutable-defaultmutation-vs-rebinding +1
Hard —
6. Reading __defaults__ After Mutation
dunder-defaultsmutable-default +1
Hard —
7. Rebinding the Name, Not the Default
definition-timealiasing +2
Hard 60%
8. Freezing the Loop Variable
definition-timeclosures +2
Hard —

Up next

8 of 8 questions here are still unsolved.