Lesson 7️⃣: Lists, Arrays and List Methods

Bitesize Key points from this lesson

  1. This lesson was focused on lists, which are ordered collections of items in Python.
  2. We learned how to create lists using square brackets and how to access elements using indexing.
  3. We explored common list methods such as append(), pop(), and remove() to modify lists.
  4. We learned about using `in` and `not in` operators to check for the presence of items in lists.
  5. We learned about re-assigning items in lists and that lists were mutable, meaning we can change their contents.
  6. finally, we explored sorting lists using the sort() method and how to reverse lists using the reverse() method.

Activities

The best way to improve your programming skills is to practice.
I created a course for learning Python that you can follow alongside these lessons.
You can check these out at BitFez’s Learning to code in Python Roadmap 🛣
You should specifically follow the Step 5: Lists activities: