Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.python > #3676
| Path | csiph.com!aioe.org!Faqf6A55NG1s8DSVkh3L9A.user.46.165.242.75.POSTED!not-for-mail |
|---|---|
| From | Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> |
| Newsgroups | fr.comp.lang.python |
| Subject | Re: probleme codage python |
| Date | Wed, 08 Dec 2021 21:25:36 +0100 |
| Organization | Université de Strasbourg |
| Message-ID | <87sfv2rghr.fsf@universite-de-strasbourg.fr.invalid> (permalink) |
| References | <zAidnWzp9brmfi38nZ2dnUU7983NnZ2d@giganews.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | quoted-printable |
| Injection-Info | gioia.aioe.org; logging-data="29057"; posting-host="Faqf6A55NG1s8DSVkh3L9A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
| X-Notice | Filtered by postfilter v. 0.9.2 |
| Cancel-Lock | sha1:iya2XSxFPMJIc0mWSpY9g0/LQjA= |
| Xref | csiph.com fr.comp.lang.python:3676 |
Show key headers only | View raw
soophiahrg <nospam_soophiaa2020hrg@gmail.com.invalid> writes:
> Je dois coder le jeu 'black jack'. Au moment de proposer au joueur de
> rejouer la question se repose a nouveau comme si j'etait dans une
> boucle infinie alors que je n'utilise pas de while.
Mais si. Ici :
[...]
> c = input(" do you want to continue ? yes/no “)
> while c !=‘yes’ or c !=‘no’ :
> c = input(” do you want to continue ? yes/no ")
Regarde bien la condition du while. Si c vaut 'yes", elle est vraie
parce que 'yes' != 'no'.
Et ton message est un vrai merdier : rien n'est indenté, il y a des
lignes qui ne viennent pas du programme, et la majorité de ce que tu
postes n'a rien à voir avec ta question. Il auraît mérité d'être ignoré.
-- Alain.
Back to fr.comp.lang.python | Previous | Next — Previous in thread | Find similar
probleme codage python soophiahrg <nospam_soophiaa2020hrg@gmail.com.invalid> - 2021-12-08 10:55 -0600 Re: probleme codage python Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2021-12-08 21:25 +0100
csiph-web