Lulu's blog
Home
(current)
Contact
Français
Fr
icon
iX
Free collection of beautiful
vector icons
for your web pages.
Get list elements in Python
Get element by index from the beginning
>>> myList=[10,20,30,40,50] >>> myList[1] 20
Get element by index from the end
>>> myList=[10,20,30,40,50] >>> myList[-2] 40
See also
How to compute all the factors of a given number in Python
Copy lists in Python
Count list elements in Python
Create lists in Python
Delete lists in Python
Insert, append, extend and concatanate lists in Python
Iterate over lists in Python
Remove an element from a list in Python
Reverse lists in Python
Find elements in lists in Python
Slice lists in Python
Last update : 04/13/2019
Legal notice
Contact
© Philippe Lucidarme