2 réponses
jisisv
Messages postés
3645
Date d'inscription
dimanche 18 mars 2001
Statut
Modérateur
Dernière intervention
15 janvier 2017
946
14 déc. 2004 à 03:03
14 déc. 2004 à 03:03
et hop
* ta liste ne contenait qu'un élément
*fais attention à l'indentation dans ta boucle while
Johan
Gates gave you the windows.
GNU gave us the whole house.(Alexandrin)
johand@horus:~$ python Python 2.3.4 (#2, Sep 24 2004, 08:39:09) [GCC 3.3.4 (Debian 1:3.3.4-12)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> jour = ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'] >>> a, b = 0, 0 >>> while a < 25: ... a = a + 1 ... b = a % 7 ... print a, jour[b] ... 1 Lundi 2 Mardi 3 Mercredi 4 Jeudi 5 Vendredi .....
* ta liste ne contenait qu'un élément
*fais attention à l'indentation dans ta boucle while
Johan
Gates gave you the windows.
GNU gave us the whole house.(Alexandrin)