Q:

Write a Python program to find those numbers which are divisible by 7 and multiple of 5, between 1500 and 2700

-1

Write a Python program to find those numbers which are divisible by 7 and multiple of 5, between 1500 and 2700

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

I have used python 3.7 compiler for debugging purpose.

nl=[]
for x in range(500, 1350):
    if (x%7==0) and (x%5==0):
        nl.append(str(x))
print (','.join(nl))

Result:

525,560,595,630,665,700,735,770,805,840,875,910,945,980,1015,1050,1085,1120,1155,1190,1225,1260,1295,1330

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Write a Python program to convert temperatures to ... >>
<< Write a Python program that accepts a word from th...