Lesson 2/6High school~150 min

Lists

Lists of numbers and names: generating random values, sorting, filtering, finding the maximum and reading until an end marker.

You can solve exercises without signing in; sign in and your progress is kept.

After this lesson you'll be able to:

  • Build lists with a loop and append
  • Sort, reverse and filter lists
  • Read values until an end marker (-1)
  • Separate randomness from program logic with functions

What you practise here

+ 9

Short tasks that check you understand: multiple choice, predicting the output, finding the bug, completing code.

Start the exercises
  1. Find the bugAn average that is offElementaryOptional20 XP
Lists · Graduation exam preparation | Mente