Results for “list slicing”

6 results

  1. Challenge

    Last five readings

    The cabin CO2 sensor sends a reading every minute, and the list of readings only grows. The crew's dashboard doesn't want all of them: it shows the five most recent, so a change is easy to spot. Slice…

    Write the code Easy 2 stages lists slicing negative slice append
  2. Article Python Fundamentals

    Python Functions for Beginners

    …in capitals, joined with a dash. Hint: look up string slicing ( name[:3] ) and the .upper() method. Stretch goal: use the random module to add two random digits at the end. 5. Go / no-go check Write…