Question: Instruction: Create a text - only chess board using nested loops. When finished with first attempt, output should look something like this: a 8 b

Instruction:
Create a text-only chess board using nested loops. When finished with first attempt, output should look something like this:
a8 b8 c8 d8 e8 f8 g8 h8
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
Need help to complete this part Once the above grid completed, copy script and edit it to obtain the below output:
------------------------------------------
| a8| b8| c8| d8| e8| f8| g8| h8|
------------------------------------------
| a7| b7| c7| d7| e7| f7| g7| h7|
------------------------------------------
| a6| b6| c6| d6| e6| f6| g6| h6|
------------------------------------------
| a5| b5| c5| d5| e5| f5| g5| h5|
------------------------------------------
| a4| b4| c4| d4| e4| f4| g4| h4|
------------------------------------------
| a3| b3| c3| d3| e3| f3| g3| h3|
------------------------------------------
| a2| b2| c2| d2| e2| f2| g2| h2|
------------------------------------------
| a1| b1| c1| d1| e1| f1| g1| h1|
------------------------------------------
My work so far: But I need help with 2nd part. output has to be similar to the instruction. (pls don't use "f" in code). ans asap.
letters =['a','b','c','d','e','f','g','h']
numbers =['8','7','6','5','4','3','2','1']
for i in range(8,0,-1):
for letter in letters:
print(letter + str(i), end ='')
print()
print('-'*41)
output:
a8 b8 c8 d8 e8 f8 g8 h8
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
-----------------------------------------
How do I complete the 2nd part ? ans asap.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!