Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.lang.python > #4328

Comment fonctionne [::-] ?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From Dominique <dominique.sextant@orange.fr.invalid>
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> (permalink)
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

Show key headers only | View raw


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

Back to fr.comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Comment fonctionne [::-] ? Dominique <dominique.sextant@orange.fr.invalid> - 2025-12-23 15:51 +0100
  Re: Comment fonctionne [::-] ? Olivier Miakinen <om+news@miakinen.net> - 2025-12-23 16:30 +0100
    Re: Comment fonctionne [::-] ? Python <python@cccp.invalid> - 2025-12-23 16:53 +0000
      Re: Comment fonctionne [::-] ? Dominique <dominique.sextant@orange.fr.invalid> - 2025-12-23 18:34 +0100
    Re: Comment fonctionne [::-] ? Dominique <dominique.sextant@orange.fr.invalid> - 2025-12-23 18:32 +0100

csiph-web