Question: Write a pytest and a function get _ odd _ numbers ( values ) . The test should validate that the function returns all odd

Write a pytest and a function get_odd_numbers(values). The test should validate that the function returns all odd numbers from a list.
Write the test and the function that implements the logic. For example if values =[2,5,8,1] then it should return [5,1]
Write a pytest and a function get_courses(major, values) where major is two character word and values is a list of course numbers.
For example, get_courses('cs', values=['hi24','cs504B','cs 604B','CS 512 B','Ma 3434'] returns ['cs504B','cs 604B','CS 512 B']

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!