0

Matrix of concentric rings in python

I have to make a program that reads an n which has to be even and between 2 and 100 The matrix has to be (n x n) For example n = 10 1111111111 1222222221 1233333321 1234444321 1234554321 1234554321 1234444321 1233333321 1222222221 1111111111 I have no idea

20th Mar 2018, 4:26 PM
Camila Lancheros
Camila Lancheros - avatar
7 Answers
+ 3
see now... i changed it
20th Mar 2018, 6:15 PM
sayan chandra
sayan chandra - avatar
20th Mar 2018, 4:45 PM
sayan chandra
sayan chandra - avatar
+ 2
what i gave is kind of similar....please try to modify....
20th Mar 2018, 7:21 PM
sayan chandra
sayan chandra - avatar
+ 1
for a in range(9,0,-1)
20th Mar 2018, 5:27 PM
sayan chandra
sayan chandra - avatar
+ 1
It doesn’t work
20th Mar 2018, 6:10 PM
Camila Lancheros
Camila Lancheros - avatar
+ 1
No, the idea is to have the matrix just like I wrote in the example
20th Mar 2018, 6:19 PM
Camila Lancheros
Camila Lancheros - avatar
0
But it shows the matrix starting from the maximun value how can I start from 1?
20th Mar 2018, 5:26 PM
Camila Lancheros
Camila Lancheros - avatar