Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- L1 = ['12', 41, '-41', 190, '115', 96,
- 24, 21, 41, 72, 11, 19, 20, 29, 77,
- 56, 60, 64, 12, 50, 10, 110, 224,
- 1200, '-70', 650, 7, 72, 52, 35, 5, 90]
- for i in L1:
- res = []
- divr = int(i)
- for j in L1:
- if int(j)%divr == 0:
- res += [j]
- print(f"The No of Numbers that are divisible by {i} : {len(res)}")
- print(f"The Numbers divisible by {i} are {res}\n\n\n")
Advertisement
Add Comment
Please, Sign In to add comment