Answer to Question #34614 in Python for Jack Allen
Enter the following code below what you have already produced:
for i in range(10):
line = ""
for j in range(10):
if j%2 == 0:
c = ' '
else:
c = '*'
line += c
print line
Now modify part of the code to produce
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
Now add three other sections that produce the following patterns.
OXOXOXOX
XOXOXOX
OXOXOX
XOXOX
OXOX
XOX
OX
X
X
XXX
XXXXX
XXXXXXX
| |
-----+-----+-----
| |
-----+-----+-----
| |
0
Answer in progress...
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
Python
Comments
Leave a comment