Aug-21-2017, 01:00 PM
Please use code or python tags when posting code, see the BBCode link in my signature, below.
A for loop in Python is very simple:
A for loop in Python is very simple:
for i in range(256): print(i)The chr function will convert an int to str. Depending on the restrictions on your homework assignment you might want to look at the itertools module, or consider doing this with recursion (so you don't have to write out all of the loops).
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