Question: 3.2. Write a function in Python, printSet(L,H), which will find all such numbers which are divisible by 7, but are not a multiple of 5,

3.2. Write a function in Python, printSet(L,H), which will find all such numbers which are divisible by 7, but are not a multiple of 5, between two positive integers L and H (both are input parameters). You can consider that H > L. The numbers obtained should be add to the set S. Your program must: (a) print the set S. (b) print True if the cardinality of S is greater or equal than 15% of the total number of integers between L and H (both are input parameters); False otherwise.

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!