Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

python

OpenStudy (e.mccormick):

How far did you get with the code and where did you get stuck?

OpenStudy (anonymous):

Here's the solution for size 6x6: #loop over 6 lines for i in range(6): #loop over 6 rows for j in range(6): #print the desired number and don't ad a new line print((i+j)%6 +1, end="") #print a new line after we filled a line print() I tested this in python 3.2 and the output is as you explained. To change the the length you can just change the 6 to whatever you want. To change the starting value change this "(i+j)%6 +1" to (i+j+startingValue)%6 +1.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
17 hours ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
19 hours ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Arizona: does anyone know the percentage rate of 30,000 and 40,000
1 week ago 0 Replies 0 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!