mirror of
https://github.com/Fare-spec/cours.git
synced 2025-12-08 03:00:37 +00:00
10 lines
237 B
Python
10 lines
237 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))]
|