I am trying to index the positions of a list of integers to obtain the position of the intergers that are >0.
This is my list:
paying=[0,0,0,1,0,3,4,0,5]
And this is the desired output:
[3,5,6,8]
rdo=paying[paying>0]
and tried:
rdo=paying.index(paying>0)
The output is in both cases
typeerror > not suported between instances of list and int