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, isprime, 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 students, how many
do you think would have prime birth dates?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
