Discord
Login
Community
DARK THEME

How can I retrieve a value from a list with the index/position/number?

I can't find anything about this in the documentation.

Use mylist[indexnumber]

Note that the first element is index position 0.

mylist=[12,45,33,19,64]
print(mylist[0]) // prints 12
print(mylist[3]) // prints 19

Danke

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community