how to position in list python code example
Example 1: python find index by value
>>> ["foo", "bar", "baz"].index("bar")
1
Example 2: how to get something from a certian possition in a list python
lst = [1,2,3]
print(lst[1]) # will print 2
>>> ["foo", "bar", "baz"].index("bar")
1
lst = [1,2,3]
print(lst[1]) # will print 2