[Tutor] about little function

Neil Schemenauer nas-pytut@python.ca
Sat Jun 7 13:48:02 2003


Abdirizak abdi wrote:
>   File "classifier.py", line 36, in combine
>     p1 = p1 * i
> TypeError: unsupported operand type(s) for *: 'float' and 'list'

The error is telling you that 'i' is a list.  That means something in
'list_probabilities' is a list.  Try to figure out why there is a list
in the 'list_probabilities' list.

  Neil