Path: buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 05 Feb 2022 09:22:45 -0600 Newsgroups: fr.comp.lang.python Subject: Très très débutant - merci pour l'aide X-poster: PEAR::Net_NNTP v1.5.0 (stable) From: DeMonteRobert Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Organization: !No_Organization! Message-ID: Date: Sat, 05 Feb 2022 09:22:46 -0600 Lines: 25 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-qkNO4Zi3HMPO55EUQeuRecBb4iDlH8qUcMU2/EYUb9lKsKVlYBK8cnoEo9bMPFaYkL6RXXmePqCYhuy!IuKGUKpiFMuLF+UiYLGJo9fEEA9foRx2SJSN3kYjGFSqy2LEOhzLK220CMMZL0J9VflYC8JjOUf0 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: 2012 Bonjour, voila mon premier codage et une erreur apparait.... je trouve pas pourquoi ? Pouvez m'aidez svp merci... code: # Manoir hanté from random import randint print ('le manoir hanté') Je_suis_courageux = True score = 0 while Je_suis_courageux : porte_fantôme = randint (1, 3) print ('Tu te retrouves face à trois portes...') print ('Derriere laquelle se cache le fantome ?') print ('Quelle porte ouvres -tu ?') print = input ('1, 2 ou 3 ?') num_porte = input ('1, 2 ou 3? ') if num_porte == porte_fantôme: print ('UN FANTOME !') Je_suis_courageux = False else: print ('Pas de fantôme!') print ('tu entres dans la prochaine salle.') score = score + 1 print ('Au secours !') print ('Partie terminée ! Ton score :', score)