Results for “arguments”

Showing 1–10 of 25

  1. Challenge

    Confirm by name

    Make abort(reason, *, confirm) refuse to run unless confirm=True is passed by name: a bare * makes confirm keyword-only and required, then an is True check refuses values that are merely truthy, such…

    Write the code Medium 2 stages functions keyword-only arguments * safety
  2. Challenge

    Any number of values

    …passes the five readings as five separate arguments. An option after the values Add a rounding option, decimals=1 , after *values , and return None when there are no values at all. Round the whole…

    Write the code Easy 2 stages functions *args unpacking keyword-only arguments