Question: Python Just need 1,5,9 The first six questions are typical functions you should be able to write using only these building blocks. 1. Write a
The first six questions are typical functions you should be able to write using only these building blocks. 1. Write a function to count how many odd numbers are in a list. 2. Sum up all the even numbers in a list. 3. Sum up all the negative numbers in a list. 4. Count how many words in a list have length 5 5. Sum all the elements in a list up to but not including the first even number. (Write your 6. Count how many words occur in a list up te and including the first occurrence of the word 7. Add a print function to Newton's sqrt function that prints out better each time it is 8. Trace the execution of the last version of print_mult table and figure out how it 9. Write a function print_triangular_numbers (n) that prints out the first n tri- unit tests. What if there is no even number?) "sam. (Write your unit tests for this case too. What if "sam does not occur?) calculated. Call your modified function with 25 as an argument and record the results. works. angular numbers. A call to printtriangular_numbers (5) would produce the following output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
