def NumGen(n): for j in range(1, n+1): if j % 5 == 0: yield j if __name__ == "__main__": N = 10 for j in NumGen(N): print(j, end = " ")
To embed this project on your website, copy the following code and paste it into your website's HTML: