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 does not return anything). For example: Test Result [25, 5, 9, 10, 15, 8] numbers = [25, 5, 9, 10, 15, 8] print (numbers) Numbers left [25, 5, 10, 8] remove_multiples_of_3(numbers) print("Numbers left", numbers)
Define a function named remove_multiples_of_3 (numbers) which takes a list of integers as a parameter. The function proc
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Define a function named remove_multiples_of_3 (numbers) which takes a list of integers as a parameter. The function proc
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!