Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 677 Bytes

File metadata and controls

18 lines (12 loc) · 677 Bytes

08 Delete element

The only way to delete Daniella from the list (without cheating) would be to create a new list with all the other people but Daniella.

📝 Instructions:

  1. Please create a delete_person function that deletes any given person from the list and returns a new list without that person.
  2. Although there are different ways to achieve the expected result in this exercise we want you to iterate using a for loop.

💻 Expected result:

Result:

['juan', 'ana', 'michelle', 'stefany', 'lucy', 'barak']
['ana', 'michelle', 'daniella', 'stefany', 'lucy', 'barak']
['juan', 'ana', 'michelle', 'daniella', 'stefany', 'lucy', 'barak']