Tom and Labels (Problem 21) - InfyTQ Solution in Python
Tom and Labels (Problem 21)
InfyTQ Solution in Python
Photo by Miguel Á. Padriñán from Pexels |
PROBLEM STATEMENT
Tom is working in a shop where he labels items. Each item is labelled with a number between num1 and num2(both inclusive). Since Tom is also a natural mathematician, he likes to observe patterns in numbers. Tom could observe that some of these label numbers are divisible by other label numbers.
Write a Python function to find out those label numbers that are divisible by another label number and display how many such label numbers are there totally.
Note:- Consider only the distinct label numbers. The list of those label numbers should be considered as a set.
SOLUTION
SHARE
If you find this useful, please share with your friends and Community.
CODE TOGETHER..GROW TOGETHER.
CODE TOGETHER..GROW TOGETHER.
Newer Posts
Newer Posts
Older Posts
Older Posts
Comments