Write a function divisible by S(nums) that takes a possibly empty list of non-zero non negative integers nums and retums
Posted: Thu May 05, 2022 12:41 pm
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