Deutsch English Français Italiano |
<nr-dnXJMLK7BhoL-nZ2dnZfqlJxh4p2d@giganews.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 12 Sep 2022 11:43:24 +0000 Newsgroups: fr.comp.lang.python Subject: Probl�me boucl X-poster: PEAR::Net_NNTP v1.5.0 (stable) From: gigi123 <nospam_giannivolturno5@gmail.com.invalid> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Organization: !No_Organization! Message-ID: <nr-dnXJMLK7BhoL-nZ2dnZfqlJxh4p2d@giganews.com> Date: Mon, 12 Sep 2022 11:43:24 +0000 Lines: 40 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-pdCuY1eUEZVM/O/7qEER91hx5HKTZ3TScA/c3RZKqiAOayAcd+3qqyr9LgEIL+XBKGVnrY80xHgbVD0!H8Yagd4NMwiVZInA4y2uJZWnFsBmNk4OAiYsoRPHcklAgKm1lx1IMFhfqVJnXqqS8ZzkfDBTQx4C X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Bytes: 2254 Bonjour, Voil� j'aimerai que mon �l�ment res[j] s'incr�mente lorsqu'il trouve la condition d'�galit� avec la 2nd liste, sans sortie de la boucle while. voici le code : identique = True a=0 #variable qui parcours ma 2nd liste b=0 #compteurs cat�gorie urnes standars c=0 #compteurs cat�gorie consommables d=0 #compteurs cat�gorie urnes d�coratives e=0 #compteurs cat�gorie cyclavet f=0 #compteurs cat�gorie bijoux g=0 #variable qui parcours ma 1�re liste j=0 #VARIABLE PREMIERE LISTE while identique == True and j==0 : if res[j] != conso[a]: a = a+1 if res[j]==conso[a]: res[j]=res[j+1] if conso1[a] == 'Cat�gorie A': b=b+1 else: if conso1[a] == 'Cat�gorie B': c=c+1 else: if conso1[a] == 'Cat�gorie C': d=d+1 else: if conso1[a] == 'Cat�gorie F': e=e+1 else: if conso1[a] == 'Cat�gorie G': f=f+1 identique = False