ASCII_A = 65 #character 65 is letter 'A'
width = int(input("Grid width: "))
for y in range(1, width + 1, 1):
line = ""
for x in range(ASCII_A, ASCII_A + width, 1):
line += chr(x) + str(y) + " "
print(line)
1. nested for.py
for x in range(1,4): for y in range(0,3): print(chr(65+y) + str(x))
x = 1 y = 65 while x <= 3: while y < 68: print(chr(y) + str(x)) y = y + 1 x = x + 1 y = 65
1
2
1
3
2
1
4
3
2
1
Count: 10
Sum: 20
Number of students: 7
Student 1 level: 14
Student 2 level: 7
Student 3 level: 7
Student 4 level: 7
Student 5 level: 6
Student 6 level: 11
Student 7 level: 11
Minimum level score: 7
Maximum level score: 14
Average level score: 9
Note - you do not need a 'nested loop' to answer this questionA1 B1 C1 D1
A2 B2 C2 D2
A3 B3 C3 D3
A4 B4 C4 D4
ASCII_A = 65 #character 65 is letter 'A'
width = int(input("Grid width: "))
for y in range(1, width + 1, 1):
line = ""
for x in range(ASCII_A, ASCII_A + width, 1):
line += chr(x) + str(y) + " "
print(line)