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
list1 = [10,-4,5,2,33,4,7,8,2,3,5,8,99,-34] print(list1) max_v=list1[0] min_v=list1[0] for x in list1: if x>max_v: max_v=x print('X is {0} and max is {1}'.format(x,max_v)) for x in list1: if x