(Use Python)Use the Design Recipe to write a function, count_odds , that consumes a list and two integers, lower_bound and upper_bound , and returns the number of all the odd integers in the list that...



(Use Python)Use the Design Recipe to write a function,
 count_odds, that consumes a list and two integers,
lower_bound
 and
upper_bound
, and returns the number of all the odd integers in the list that are between
lower_bound
 and
upper_bound
 (inclusive of both
lower_bound
 and
upper_bound
). Include a docstring!


For example:
























TestResult
print(count_odds([0, 100, 50, 20], 10, 60))0
print(count_odds([1, 100, 85, 63, 52, 60, 50], 50, 100))2
print(count_odds([-17, -20, -33, 41, 19, 61], -17, 61))4



Write threeassert_equal
statements to test your  function.



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here