Answer to Question #34614 in Python for Jack Allen

Question #34614
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
Expert's answer

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS