Get position in list
Solved
erickvand
-
hugo -
hugo -
Hello,
I would like to know how to get the position of an element in a list with Python?
For example, if I have a list ['lundi', 'mardi', 'mercredi'], I would like to ask it: give me the position of mardi in the list (and logically, it should return 1).
How can I code this?
Thank you in advance.
I would like to know how to get the position of an element in a list with Python?
For example, if I have a list ['lundi', 'mardi', 'mercredi'], I would like to ask it: give me the position of mardi in the list (and logically, it should return 1).
How can I code this?
Thank you in advance.
Configuration: Windows XP Internet Explorer 6.0