Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started