Correction indice des listes
This commit is contained in:
parent
6a7a6ffb43
commit
50b4b83f39
|
@ -151,8 +151,8 @@ partie("Analyse du tri par sélection")
|
||||||
question(1)
|
question(1)
|
||||||
|
|
||||||
for i in range(1, 101):
|
for i in range(1, 101):
|
||||||
print(i, " ", tri_et_compte(tri_selection, liste_croissante(i))[1], " ", tri_et_compte(
|
print(i, " ", tri_et_compte(tri_selection, liste_croissante(i+1))[1], " ", tri_et_compte(
|
||||||
tri_selection, liste_decroissante(i))[1], " ", tri_et_compte(tri_selection, liste_alea(i, 0, 500))[1])
|
tri_selection, liste_alea(i+1, 0, 500))[1], " ", tri_et_compte(tri_selection, liste_decroissante(i+1))[1])
|
||||||
|
|
||||||
question(2)
|
question(2)
|
||||||
|
|
||||||
|
|
Reference in a new issue