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
l = [-1.2, 0.0, 1] x = 100.0 for i in l: if i < x: x = i print (x)
This is the answer, i needed this for my homework, took your code, and i deleted the " " around the numbers, it then worked, i hope this helped