N = 3 num = 1 for i in range(N): if i % 2 == 0: print(num, num+1, num+2) else: print(num+2, num+1, num) num += N
To embed this project on your website, copy the following code and paste it into your website's HTML: