#Question:
#Write a program which will find all such numbers which are divisible by 7 but are not a multiple of 5,
def mat():
mylist=[]
for i in range(2000,3000):
count=0
if (i % 7 == 0) and (i % 5 != 0):
count=count + 1
mylist.append(i)
return mylist
a=mat()
print a
#Write a program which will find all such numbers which are divisible by 7 but are not a multiple of 5,
def mat():
mylist=[]
for i in range(2000,3000):
count=0
if (i % 7 == 0) and (i % 5 != 0):
count=count + 1
mylist.append(i)
return mylist
a=mat()
print a
No comments:
Post a Comment