mirror of
https://github.com/Fare-spec/cours.git
synced 2025-12-07 10:50:36 +00:00
12 lines
239 B
Python
12 lines
239 B
Python
def diag_1(carre):
|
|
return [carre[i][i] for i in range(len(carre))]
|
|
|
|
|
|
def diag_2(carre):
|
|
n = len(carre)
|
|
return [carre[i][n - 1 - i] for i in range(n)]
|
|
|
|
|
|
def colonne(j, carre):
|
|
return [carre[i][j] for i in range(len(carre))]
|