Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.python > #3748
| Newsgroups | fr.comp.lang.python |
|---|---|
| Subject | Très très débutant - merci pour l'aide |
| From | DeMonteRobert <nospam_r.demonte69@gmail.com.invalid> |
| Organization | !No_Organization! |
| Message-ID | <QeydndQb0pPbC2P8nZ2dnUU7_83NnZ2d@giganews.com> (permalink) |
| Date | 2022-02-05 09:22 -0600 |
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)
Back to fr.comp.lang.python | Previous | Next — Next in thread | Find similar
Tr�s tr�s d�butant - merci pour l'aide DeMonteRobert <nospam_r.demonte69@gmail.com.invalid> - 2022-02-05 09:22 -0600
Re: Très très débutant - merci pour l'aide Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2022-02-05 20:56 +0100
Re: Très très débutant - merci pour l'aide Lulu <lulu042@fry.fr.invalid> - 2022-04-07 22:53 +0200
Re: Très très débutant - merci pour l'aide Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2022-04-08 12:52 +0200
csiph-web