I have the following code:
l = [\'-1.2\', \'0.0\', \'1\'] x = 100.0 for i in l: if i < x: x = i print x
The code should fin
Or no float conversion at all by just specifying floats in the list.
l = [-1.2, 0.0, 1] x = min(l)
or
l = min([-1.2, 0.0, 1])