Results for “tuples”

Showing 11–12 of 12

  1. Challenge

    Any number of values

    …The whole pass: 419.5 Inside the function, values is a tuple, so sum() and len() work on it. In the second call, average(*readings) passes the five readings as five separate arguments. An option after…

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

    Print the manifest

    In "Manifest line" you printed one item from a tuple. The logistics system now exports the whole manifest as a list of dicts, one per item, with an ID, a name, a category and a mass. The loading crew…

    Write the code Easy 2 stages dictionaries lists of dicts for loop formatting