def str2float(s): return reduce(lambda x,y:10*x+y,map(int,s[:s.find('.')])) + reduce(lambda x,y:x/10 + y,(map(int,s[-1:s.find('.'):-1])))/10;
Sign in to make a reply
kkopite