Python Exercises - Data Structures #3 (single list duplicates)

Поділитися
Вставка
  • Опубліковано 4 гру 2024

КОМЕНТАРІ • 6

  • @robmonkriedlinger
    @robmonkriedlinger 4 роки тому +4

    Thank you for taking the time to record this - really simple concept to understand once watching this... and REALLY helpful in many real-life situations for small businesses and noobie coders like me. Rock on!

    • @PyMoondra
      @PyMoondra  4 роки тому +3

      Thank you! Anytime when I am programming projects, if I run into these types of exercises, I try to write it down so I can create an video out it. This is one of those instances.

    • @robmonkriedlinger
      @robmonkriedlinger 4 роки тому

      @@PyMoondra I really appreciate that practice of yours!

  • @dodokwak
    @dodokwak 4 роки тому

    I wasn't attentive enough to realize that we are looking for duplicates in a list and count them. I thought to use a set to get a list of unique elements. Thanks.

    • @PyMoondra
      @PyMoondra  4 роки тому +1

      Yeah. It's a little different from the other other exercise. Sometimes you want to be able to extract the duplicate items, so I thought it would be useful to make such an exercise.