From 8248796a6486a0c0071be796d76e33532c932ca6 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Tue, 10 Mar 2015 10:50:42 +0100 Subject: [PATCH] =?UTF-8?q?TP4=20Oubli=C3=A9=20partie(),=20section()=20et?= =?UTF-8?q?=20question()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- S2/TP4/analyse_tris.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/S2/TP4/analyse_tris.py b/S2/TP4/analyse_tris.py index 5de82cd..a2e9e07 100644 --- a/S2/TP4/analyse_tris.py +++ b/S2/TP4/analyse_tris.py @@ -17,6 +17,19 @@ http://www.fil.univ-lille1.fr/~L1S2API/CoursTP/tp4_tri.html __author__ = 'PREUD\'HOMME Geoffrey & BEAUSSART Jean-loup' __date_creation__ = 'Tue, 10 Mar 2015 10:26:41 +0100' +from random import randint, shuffle + +def partie(nom): + print('\n', nom, '=' * len(nom), sep='\n') + + +def section(nom): + print('\n', nom, '-' * len(nom), sep='\n') + + +def question(numero): + print('\n***', 'Question', numero, '***') + partie("Prérequis") partie("Travail à réaliser")