mirror of
https://github.com/Fare-spec/cours.git
synced 2025-12-09 19:30:40 +00:00
Add university content
This commit is contained in:
13
high-school/TDliste2liste/exercice4.py
Normal file
13
high-school/TDliste2liste/exercice4.py
Normal file
@@ -0,0 +1,13 @@
|
||||
def cree_carre_entier_1_n_carre(n):
|
||||
carre = []
|
||||
compteur = 1
|
||||
for i in range(n):
|
||||
ligne = []
|
||||
for j in range(n):
|
||||
ligne.append(compteur)
|
||||
compteur += 1
|
||||
carre.append(ligne)
|
||||
return carre
|
||||
|
||||
|
||||
print(cree_carre_entier_1_n_carre(8))
|
||||
Reference in New Issue
Block a user