From 50b4b83f3985246e66351b473bb1b4e26feb9564 Mon Sep 17 00:00:00 2001 From: Jean-Loup Beaussart Date: Tue, 10 Mar 2015 11:32:50 +0100 Subject: [PATCH] Correction indice des listes --- S2/TP4/analyse_tris.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/S2/TP4/analyse_tris.py b/S2/TP4/analyse_tris.py index 3ed1f11..b9ecd8c 100644 --- a/S2/TP4/analyse_tris.py +++ b/S2/TP4/analyse_tris.py @@ -151,8 +151,8 @@ partie("Analyse du tri par sélection") question(1) for i in range(1, 101): - print(i, " ", tri_et_compte(tri_selection, liste_croissante(i))[1], " ", tri_et_compte( - tri_selection, liste_decroissante(i))[1], " ", tri_et_compte(tri_selection, liste_alea(i, 0, 500))[1]) + print(i, " ", tri_et_compte(tri_selection, liste_croissante(i+1))[1], " ", tri_et_compte( + tri_selection, liste_alea(i+1, 0, 500))[1], " ", tri_et_compte(tri_selection, liste_decroissante(i+1))[1]) question(2)