Answered You can hire a professional tutor to get the answer.

QUESTION

Write a function named isDivisible that takes two parameters 1. maxInt , an integer 2.

a.       Write a function named isDivisible that takes two parameters

1.       maxInt, an integer

2.       twoInts, a tuple of two integers

           The function isDivisible should create and return a list of all the ints in the range from 1 to maxInt (not including maxInt) that are divisible of both ints in twoInts.

b.       Create three test cases, each consisting of a value for maxInt and a value for twoInts, for your function in Problem 2a. One of these tests should return the empty list. For each test case write two assignment statements and a function call that pass the test arguments to your function.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question