Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 549 Bytes

File metadata and controls

17 lines (11 loc) · 549 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.

💻 Expected result:

Result:

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