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:
525,560,595,630,665,700,735,770,805,840,875,910,945,980,1015,1050,1085,1120,1155,1190,1225,1260,1295,1330
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
I have used python 3.7 compiler for debugging purpose.
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