I have a list in python of probabilites of something
aprob=[ 0.2 ,0.3, 0.0, 0.1, 0.4]
and I want to get a list with the probabilities of the opposite event
a_not_prob= [0.8, 0.7,1.0, 0.9,0.6]
The thing is that I am watching a tutorial and there the following works, but for me it throws an error:
a_not_prob=1.0-aprob
For me, it throws
unsupported operand type(s) for -: 'float' and 'list'
The funny thing is that for the instructor it works...
so How can I get the second list from the first one?