Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1516 connectés 

  FORUM HardWare.fr
  Programmation
  Python

  comment on fait une boucle ?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

comment on fait une boucle ?

n°295540
mareek
Et de 3 \o/
Posté le 28-01-2003 à 17:18:29  profilanswer
 

et un si ?
 
 
 
(Spécial harko  :hello: )


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
mood
Publicité
Posté le 28-01-2003 à 17:18:29  profilanswer
 

n°295552
Taz
bisounours-codeur
Posté le 28-01-2003 à 17:34:40  profilanswer
 

while condition:
<tab>instruction
 
 
if condition:
<tab>instruction
elif condtion:
<tab>instruction
else:
<tab>instruction
 
la boucle for habituel i [0, 100[
 
for i in range(100):
<tab>instruction
 
mais on se sert aussi du for pour parcourir des collections d'éléments, pour lire un fichier, etc

n°295615
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 28-01-2003 à 18:26:23  profilanswer
 

[:cupra]
 
edit: t'aurais pu qd meme regarder dans la doc de Python !


Message édité par Harkonnen le 28-01-2003 à 18:26:57

---------------
J'ai un string dans l'array (Paris Hilton)
n°295926
mareek
Et de 3 \o/
Posté le 29-01-2003 à 01:11:29  profilanswer
 

Harkonnen a écrit :

[:cupra]
 
edit: t'aurais pu qd meme regarder dans la doc de Python !

c'était  juste histoire de faire un topicalacon pour appaiser ta soif de modération :whistle:


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°295948
Phod
Glouloulou ?
Posté le 29-01-2003 à 02:00:15  profilanswer
 

mareek a écrit :

c'était  juste histoire de faire un topicalacon pour appaiser ta soif de modération :whistle:  


:non:  :heink:  :pfff:


---------------
Signatures aux choix Votez:  O - Le python c'est bon, mangez-en  O - L'abus de forum rend dependant, postez avec modération
n°296022
lorill
Posté le 29-01-2003 à 08:58:36  profilanswer
 

tain mareek, t'es con... t'aurais au moins pu faire ca dans cobol...

n°296026
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 29-01-2003 à 09:00:37  profilanswer
 

oui oui oui....
merci à mareek, je commençais à rouiller :d


---------------
J'ai un string dans l'array (Paris Hilton)

Aller à :
  FORUM HardWare.fr
  Programmation
  Python

  comment on fait une boucle ?

 

Sujets relatifs
[PHP] Image PNG generé en boucle, ca ne marche pasje voudrai que la boucle tourne jusqua ce que j apui sur une touche
Pb de EOF dans boucle DoExemple OpenGL MSDN, boucle des msg
Pkoi ça boucle???Boucle infinie ! je voit pas ou elle est
J'ai un problème avec l'envoi de variables contenues dans une boucle..Evénement pendant une boucle TANTQUE
question simple sur la boucle "pour"[PHP] Besoin d'aide pour effectuer une boucle...
Plus de sujets relatifs à : comment on fait une boucle ?


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR