Notifications
Clear all
0
12/06/2020 2:30 pm
Topic starter
Output Example:
'divisibility by 2 and 5'
[10, 25, 20, 35, 55]
10
20
1 Answer
0
12/06/2020 2:30 pm
Topic starter
lst=[20,35,75,28,90,78,65,30,100]
m=int(input('enter the 1st number: '))
n=int(input('enter the 2nd number: '))
for i in lst:
if(i%m==0 and i%n==0):
print(i)