just for fun
for i in range(1,10): for n in range(i, i ** 2 + 1, i): print(n, end=' ') print() for i in range(1,10): print(' '.join(str(n) for n in range(i, i ** 2 + 1, i))) # as oneliner print('\n'.join(' '.join(str(n) for n in range(i, i ** 2 + 1, i)) for i in range(1, 10)))
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs