Results for “reverse”

5 results

  1. Challenge

    sort() returns None

    …readings from highest to lowest, in place, with sort(reverse=True) , then print the three highest with a slice: Highest three: [455.2, 430.1, 412.5] Don't store what sort() gives back.

    Fix the code Easy 3 stages lists sort None in place
  2. Challenge

    Flight software review

    …a type error, a wrong key, an index out of range and a reversed decision. Read each error to fix the four that crash, then find the one that runs but gives the wrong answer.

    Fix the code Hard 2 stages project debugging SyntaxError TypeError
  3. Challenge

    Mass by category

    …kg (3%) spares: 2.4 kg (2%) sorted(totals, key=totals.get, reverse=True) gives the categories ordered by their totals. sum(totals.values()) is the whole load.

    Write the code Medium 2 stages dictionaries grouping get sorted