Write a function divisible by S(nums) that takes a possibly empty list of non-zero non negative integers nums and retums
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a function divisible by S(nums) that takes a possibly empty list of non-zero non negative integers nums and retums
Write a function divisible by S(nums) that takes a possibly empty list of non-zero non negative integers nums and retums a list containing just the elements of nums that are exactly divisible by 5, in the same order as they appear in nums. For example: Test Result print(divisible by.s([5, 7, 20, 14, 5, 71)) [5, 20, 0] print (divisible by.s((1. 15, s, 11])) [19, 5] Answer: (penalty regime: 0, 10,...) I
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!