Write a program to print which will find all such numbers which are divisible by 7 but are not a multiple of 5,


Topic: Write a program to print which will find all such numbers which are divisible by 7 but are not a multiple of 5,

Solution

between 2000 and 3200 (both included).  
l=[]
for i in range(2000, 3201):
    if (i%7==0) and (i%5!=0):
        l.append(str(i))
print ','.join(l)



List all Python Programs