76 813
Assignments Done
98,7%
Successfully Done
In June 2019

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

| |
-----+-----+-----
| |
-----+-----+-----
| |
Expert's answer

Not answered

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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions