Question: 1) Use the Design Recipe to write a function count_odd_ints that consumes a list-type argument and returns the number of odd integers in the list.
1) Use the Design Recipe to write a function count_odd_ints that consumes a list-type argument and returns the number of odd integers in the list. The list may contain any type of data. Include a docstring!
2) Use the Design Recipe to write a function round_list, which consumes two arguments, a list of floats (float_list), and the other a positive integer (decimals). The return value is the same as float_list, but with each entry rounded to decimals decimal places. Your function should NOT modify the original list. Include a docstring!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
