Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Dominique Newsgroups: fr.comp.lang.python Subject: Comment fonctionne [::-] ? Date: Tue, 23 Dec 2025 15:51:50 +0100 Organization: A noiseless patient Spider Lines: 18 Message-ID: <10ieaa6$bc4s$1@dont-email.me> Reply-To: dominique.sextant@orange.fr.invalid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 23 Dec 2025 14:51:51 +0000 (UTC) Injection-Info: dont-email.me; posting-host="119fd20e6933403172821ea4fc7121ef"; logging-data="372892"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GHyiy3AsscvlytAVIPc8bRezyazdgA1A=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:uc8S/Ta8oxbOiBsHjmRdXXR/FYU= Content-Language: fr Xref: csiph.com fr.comp.lang.python:4328 Bonjour, Tout est dans le sujet. J'ai bien compris le résultat : test="Bonjour Python" test[::-1] 'nohtyP ruojnoB' Ce que je ne parviens pas à comprendre, c'est comment fonctionne [::-1] Si vous pouviez m'éclairer, j'en serais heureux. Merci par anticipation 😊 Joyeux Noël à tous, -- Dominique Esto quod es