from functools import reducedi = {}di.update(zip('1234567890.', [1,2,3,4,5,6,7,8,9,0,'.'])) def str2float(s): st = s.split('.') st1 = reduce(lambda x,y: 10*x + y, map(lambda x: di[x], st[0])) try: st2 = reduce(lambda x,y: (x*0.1 + y), map(lambda x: d…