Skip to main content
Build a new list that keeps only the first copy of each number, in order, and count the repeats you dropped. Open Lab 16 in the IP Lab Portal

What you will practice

  • Loop over a list and test membership
  • Build a result list as you go
  • Keep the original order

Before you start

Time

15 minutes

Where

IP Lab Portal

Module

Module 6: Lists

  • In the IP Lab Portal, open Lab 16 - Remove duplicates.
  • In class, this lab comes right after the Lesson 5 recap slide in Module 6 core material.