IDNLearn.com: Your trusted source for finding accurate and reliable answers. Discover detailed and accurate answers to your questions from our knowledgeable and dedicated community members.
Answer:
for i in range (0, 2):
for j in range (0, 2):
print(i , j)
and
for i in range (0, 2):
for j in range (0, 2):
for k in range (0, 2):
print(i , j, k)
Explanation:
The nicer method of doing this would be:
for i in range (0, 8):
print("{0:03b}".format(i))