Question: Write a function to count how many odd numbers are in a list. Sum up all the even numbers in a list. Sum up all

Write a function to count how many odd numbers are in a list.
Sum up all the even numbers in a list.
Sum up all the negative numbers in a list.
Write a function, is_prime, which takes a single integer argument and returns True when the argument is a prime
number and False otherwise. Add tests for cases like this:
The last case could represent your birth date. Were you born on a prime day? In a class of 100 students, how many
do you think would have prime birth dates?
Write a function to count how many odd numbers

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 Accounting Questions!