# -*- coding: utf-8 -*-
from functools import reduce
def str2float(s):
    def str2(s):
        return 
    def 2float(x,y):
        return 1*x + y
    return reduce(2float,map(str2,s))
print('str2float(\'123.456\') =', str2float('123.456'))

