0
Python function to find out label numbers that are divisible by another label number and display how such labels are there total
Tom is working in a shop where he label items.Each item is labelled with a number between num1 and num2(both inclusive).Since Tom likes patterns ,he could observe that some of the numbers are divisible by other label numbers. Note: Consider only distinct label numbers.The list should be considered as list.
1 Answer
0
1-loop over list elements.
2- set a counter
3- open a new list
4- apply a condition ( like divisible by something)
5- say when the condition is true, update the counter, append the new list.