Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.python > #4229
| From | yves <yves@free.invalid> |
|---|---|
| Subject | Re: Saisie de 2 nombres ... |
| Newsgroups | fr.comp.lang.python |
| References | <67128910$0$28081$426a74cc@news.free.fr> <veu6lv$1901$1@cabale.usenet-fr.net> |
| Date | 2024-10-20 13:37 +0000 |
| Message-ID | <671507b4$0$28056$426a74cc@news.free.fr> (permalink) |
| Organization | Guest of ProXad - France |
Le Fri, 18 Oct 2024 19:42:23 +0200, Olivier Miakinen a écrit:
> txt = input("Entrez vos 2 nombres :") n1, n2 =
> list(map(int,txt.split(',')))
ou encore :
n1,n2 = [int(elt) for elt in input("Entrez vos 2 nombres : ").split(',')]
Mais il faut mieux être le seul utilisateur, ou alors avoir une grande
confiance en ses utilisateurs.
@+
--
Yves
Back to fr.comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Saisie de 2 nombres ... gil203 <gil203@outlook.com> - 2024-10-18 18:13 +0200
Re: Saisie de 2 nombres ... Olivier Miakinen <om+news@miakinen.net> - 2024-10-18 19:42 +0200
Re: Saisie de 2 nombres ... gil203 <gil203@outlook.com> - 2024-10-20 12:17 +0200
Re: Saisie de 2 nombres ... Olivier Miakinen <om+news@miakinen.net> - 2024-10-20 12:26 +0200
Re: Saisie de 2 nombres ... yves <yves@free.invalid> - 2024-10-20 13:37 +0000
csiph-web