Results for “items”

Showing 21–27 of 27

  1. 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
  2. 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
  3. 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
  4. Challenge

    Manifest diff

    The manifest changes every day as items are packed and unpacked. The loading supervisor doesn't want to read both lists side by side: she wants to know what changed. Work out what was added and what…

    Write the code Easy 2 stages sets difference intersection sorted
  5. Challenge

    Roster changes

    …Take them out with pop() , which gives the removed item back, and print who it was before the roster: Reassigned: Moreau Roster: Okafor, Haddad, Lindqvist, Kowalska Crew size: 4

    Write the code Easy 2 stages lists append insert remove