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.

2nd Mar 2019, 11:35 AM
Bharghavi Ganesan
Bharghavi Ganesan - avatar
1 Odpowiedź
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.
2nd Mar 2019, 11:54 AM
Ahmad Ali
Ahmad Ali - avatar