Question: Write a python function, countOdds, that takes a list of positive integers as its parameter and returns the total number of odd values in the

Write a python function, countOdds, that takes a list of positive integers as its parameter and returns the total number of odd values in the parameter list.
Your solution should be a complete function definition with appropriate syntax and indentation.
Note: you should use whitespace characters for indentation since tabs may not work in Gradescope's answer box.
Examples of correct output are:
assert countOdds([1,2,3])==2
assert countOdds([])==0
assert countOdds([3,3,5])==3
assert countOdds([2,4,6,7,8,9])==2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!