Using an index to get an item, Python

Posted by anteater7171 on Stack Overflow See other posts from Stack Overflow or by anteater7171
Published on 2010-06-11T02:55:34Z Indexed on 2010/06/11 3:02 UTC
Read the original article Hit count: 302

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about python

Related posts about list