About initial programming in python: Create a function that receives as parameters a list of 4 elements [name,[phone(s)], email, instagram] and a phone number: • If the phone number is in the list, it must be removed. • If not, no updates will be made. Note: phone(s) is within another list. Your function should only return a Boolean value, indicating whether the change was made or not. To find out if the function did the phone deletion correctly, you should check the contents of the list with the contact details you used to test your function after executing it. In the image is the model of parameters, in this case the function must exclude from the list of 4 elements the indicated number '44322456' and return "True".
About initial
Create a function that receives as parameters a list of 4 elements [name,[phone(s)], email, instagram] and a phone number:
• If the phone number is in the list, it must be removed.
• If not, no updates will be made.
Note: phone(s) is within another list.
Your function should only return a Boolean value, indicating whether the change was made or not. To find out if the function did the phone deletion correctly, you should check the contents of the list with the contact details you used to test your function after executing it.
In the image is the model of parameters, in this case the function must exclude from the list of 4 elements the indicated number '44322456' and return "True".
Step by step
Solved in 4 steps with 2 images