find positions of ones in list python code example
Example 1: how to get something from a certian possition in a list python
lst = [1,2,3]
print(lst[1]) # will print 2
Example 2: get index of item in list
list.index(element, start, end)
lst = [1,2,3]
print(lst[1]) # will print 2
list.index(element, start, end)