Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.python > #3152
| From | Pierre Maurette <maurette.pierre@free.fr> |
|---|---|
| Newsgroups | fr.comp.lang.python |
| Subject | Re: liste et sqrt() |
| Date | 2019-02-13 06:41 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <mn.69917e3226dad58e.79899@free.fr> (permalink) |
| References | <slrnq672o3.2v8.lulu042@Minty.Rock-n-Roll.org> |
Lulu : > Bonjour, > >>>> from math import * >>>> liste=[0,1,2,3,4,5,6] >>>> print(liste) > [0, 1, 2, 3, 4, 5, 6] >>>> print(sqrt(x) for x in liste) <generator object <genexpr> at >>>> 0x7faab1a75a40> >>>> > > Pour ça ne marche pas (python3.6) ? print([sqrt(x) for x in liste]) -- Pierre Maurette
Back to fr.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
liste et sqrt() Lulu <lulu042@fry.fr.invalid> - 2019-02-13 04:12 +0100
Re: liste et sqrt() Pierre Maurette <maurette.pierre@free.fr> - 2019-02-13 06:41 +0100
Re: liste et sqrt() Lulu <lulu042@fry.fr.invalid> - 2019-02-13 13:36 +0100
Re: liste et sqrt() Nicolas <nicolasp@aaton.com> - 2019-02-13 08:45 +0100
Re: liste et sqrt() Lulu <lulu042@fry.fr.invalid> - 2019-02-13 13:45 +0100
Re: liste et sqrt() ast <none@gmail.com> - 2019-02-13 13:46 +0100
csiph-web