Home /
Expert Answers /
Computer Science /
python-define-a-function-named-remove-multiples-of-3-numbers-which-takes-a-list-of-integers-as-a-p-pa184
(Solved): PYTHON
Define a function named remove_multiples_of_3(numbers) which takes a list of integers as a p ...
PYTHON
Define a function named remove_multiples_of_3(numbers) which takes a list of integers as a parameter. The function processes the list elements backwards and removes the elements which are divisible by 3. Note: • The list is changed in place (i.e. the function updates the parameter list and it does not return anything). For example: Test Result [25, 5, 9, 10, 15, 8] Numbers left (25, 5, 10, 8] numbers = [25, 5, 9, 10, 15, 8] print(numbers) remove_multiples_of_3(numbers) print("Numbers left", numbers)
this Solution: In this question, we have to create a function which takes a list of numbers as argument and remove all the multiples of 3 from the list. This function will not re