(Use Python)Use the Design Recipe to write a function, count_odds, that consumes a list and two integers,lower_bound andupper_bound, and returns the number of all the odd integers in the list that are betweenlower_bound andupper_bound (inclusive of bothlower_bound andupper_bound). Include a docstring!
For example:
Write threeassert_equalstatements to test your function.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here