[Python] Using an index to get an item

Discussão em 'Python' iniciado por Stack, Março 6, 2025.

  1. Stack

    Stack Membro Participativo

    I have a list in python ('A','B','C','D','E'), how do I get which item is under a particular index number?

    Example:

    • Say it was given 0, it would return A.
    • Given 2, it would return C.
    • Given 4, it would return E.

    Continue reading...

Compartilhe esta Página