Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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']