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.


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

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

Result

python language techstudy.org

     





Related Topics




Popular Posts