Must-do problems: Lists
90 min ยท Beginner
Need help? Ask a tutor on WhatsApp (opens in a new tab)These are the list problems every Python beginner should be able to solve, from a simple total to a spiral walk over a table. Trace each one on paper with a small list first, then check your program against every test.
What you will learn
What you will learn
- Read a list from input and process it with a loop, a slice or a comprehension
- Search, count and remove repeats without changing the order
- Merge sorted lists and keep a moving total over a window
- Build and walk a table stored as a list of lists
Sign in to continue this lesson
Create an account to read every lesson, practise with the exercises and keep track of your progress.