Apr-10-2019, 05:46 PM
If you want to nest loops, put one inside the other, not on top of the other:
for i in range(0, 3): for j in range(0, 3): print('#{}{}'.format(i, j))Also, check out the itertools module. It has very useful generators for things like this: product, combinations, permutations.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures