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
Python has a built in min function to help you with finding the smallest.
min
However, you need to convert your list items to numbers before you can find the lowest integer( what, isn't that float? )
min(float(i) for i in l)