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.
- Please create a
delete_personfunction that deletes any given person from the list and returns a new list without that person. - Although there are different ways to achieve the expected result in this exercise we want you to iterate using a
forloop.
Result:
['juan', 'ana', 'michelle', 'stefany', 'lucy', 'barak']
['ana', 'michelle', 'daniella', 'stefany', 'lucy', 'barak']
['juan', 'ana', 'michelle', 'daniella', 'stefany', 'lucy', 'barak']