tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Notices by Saci Pererê! (saci@bantu.social)

  1. Saci Pererê! (saci@bantu.social)'s status on Sunday, 19-Mar-2023 20:55:31 CET Saci Pererê! Saci Pererê!
    in reply to
    • Victorhck

    @victorhck mejor

    c2 = list(reversed(c1))

    In conversation Sunday, 19-Mar-2023 20:55:31 CET from bantu.social permalink
  2. Saci Pererê! (saci@bantu.social)'s status on Sunday, 19-Mar-2023 20:55:31 CET Saci Pererê! Saci Pererê!
    in reply to
    • Victorhck

    @victorhck perdon, retorna un iterator, asi tiene que expandir la lista.

    c2 = reversed(c1)
    print(list(c2))

    In conversation Sunday, 19-Mar-2023 20:55:31 CET from bantu.social permalink
  3. Saci Pererê! (saci@bantu.social)'s status on Sunday, 19-Mar-2023 20:50:01 CET Saci Pererê! Saci Pererê!
    in reply to
    • Victorhck

    @victorhck

    "The reverse() method modifies the sequence in place for economy of space when reversing a large sequence. To remind users that it operates by side effect, it does not return the reversed sequence."

    https://docs.python.org/3.8/library/stdtypes.html#list

    In conversation Sunday, 19-Mar-2023 20:50:01 CET from bantu.social permalink
  4. Saci Pererê! (saci@bantu.social)'s status on Sunday, 19-Mar-2023 20:47:33 CET Saci Pererê! Saci Pererê!
    in reply to
    • Victorhck

    @victorhck reversed(c1)

    In conversation Sunday, 19-Mar-2023 20:47:33 CET from bantu.social permalink
  5. Saci Pererê! (saci@bantu.social)'s status on Sunday, 19-Mar-2023 20:42:40 CET Saci Pererê! Saci Pererê!
    in reply to
    • Victorhck

    @victorhck creo que reverse tiene efecto "inplace" asi retorna None, pero el objecto originao si esta modificado.

    In conversation Sunday, 19-Mar-2023 20:42:40 CET from bantu.social permalink

User actions

    Saci Pererê!

    Saci Pererê!

    ساسي بيريريGambiologista e Comunicador Popular ;*

    Tags
    • (None)
    ActivityPub
    Remote Profile

    Following 0

      Followers 0

        Groups 0

          Statistics

          User ID
          36710
          Member since
          19 Mar 2023
          Notices
          5
          Daily average
          0

          Feeds

          • Atom
          • Help
          • About
          • FAQ
          • TOS
          • Privacy
          • Source
          • Version
          • Contact

          tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

          Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.