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

Introduction

Write a Python program to find those numbers which are divisible by 7 and multiple of 5, between 1500 and 2700. 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

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

Leave a Comment