Results for “items”

Showing 31–40 of 56

  1. Challenge

    Undo and history

    …and record every change that actually happens as (action, item, mass) : ("add", "CG-0042", 18.5) or ("remove", "CG-0042", 18.5) . Refused commands change nothing, so they aren't recorded. Add a…

    Write the code Hard 2 stages project lists stack append
  2. Challenge

    Names with values

    Print each sensor name with its reading by looping over two lists together with zip(), then add a third list of units and warn when the lists don't have the same length, since zip() quietly stops at…

    Write the code Easy 2 stages for loop zip lists unpacking
  3. Challenge

    Missing index

    readings[5] on a list of five readings stops with an IndexError. Predict it, work out the valid indexes with len(), fix it with [-1], then print the first, middle and last readings for any length.

    Fix the code Easy 3 stages lists indexing IndexError len
  4. Challenge

    Airlock permissions

    …missing eva_certified needed <= granted is True when every item of needed is in granted . needed - granted is what's missing. Every action The control panel shows every airlock action at once. ACTIONS…

    Write the code Medium 2 stages sets subset difference permissions