Results for “mutable defaults”

1 result

  1. Challenge

    Shared default list

    …log=[]) remembers samples from earlier calls, because the default list is created once and shared. Predict it, prove the calls share one list, fix it with None as the default, then write a function…

    Fix the code Medium 3 stages functions default values mutable defaults None