from functools import reduce
def normalize(name):
return list(map(lambda x:x.capitalize(),name))
def prod(L):
return reduce(lambda x,y:x*y,L)
def str2float(s):
digit = {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9}
integer,decimals = s.split('.')
decimal_point = len(decimals)
integer = reduce(lambda x,y:x*10+y,(map(lambda x:digit[x],integer)))
decimals = reduce(lambda x,y:x*10+y,(map(lambda x:digit[x],decimals)))
return integer+decimals/pow(10,decimal_point)