Path: csiph.com!weretis.net!feeder8.news.weretis.net!newsfeed.bofh.team!paganini.bofh.team!not-for-mail From: yves Newsgroups: fr.comp.lang.python Subject: Re: Documentaire Date: Wed, 03 Sep 2025 17:27:05 +0200 Organization: To protect and to server Message-ID: <87ms7bv9o6.fsf@free.fr.invalid> References: <68b70406$0$12947$426a34cc@news.free.fr> <1098bro$tio6$1@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: paganini.bofh.team; logging-data="2933305"; posting-host="cwBt3J57t7oigwiUNMzohA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A"; User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:gQc1sQ+tfNPc4ejl3qT3150cd38= X-Notice: Filtered by postfilter v. 0.9.3 Xref: csiph.com fr.comp.lang.python:4318 Dominique writes: >>>>> all( (_=C2=A0 :=3D x) % 2 =3D=3D 0 for x in (0, 2, 4, 7, 9, 8)) >> False >>>>> _ >> 7 =20 > Je ne comprends pas cette formulation ? Help !) Python>>> help(all) Help on built-in function all in module builtins: all(iterable, /) Return True if bool(x) is True for all values x in the iterable. =20=20=20=20 If the iterable is empty, return True. M=C3=AAme genre d'exemple d=C3=A9Perlis=C3=A9 : Python>>> villes =3D ("Bordeaux", "Biarritz", "Lille", "Blois", "Toulouse") Python>>> all((contreExemple :=3D ville).startswith("B") for ville in ville= s) False Python>>> contreExemple 'Lille' --=20 Yves