I have the following Python code:
data = ['1', '4.6', 'txt']
funcs = [int, float, str]
How to call every function with data in corresponding index as an argument to the function? Now I'm using the code:
result = []
for i, func in enumerate(funcs):
result.append(func(data[i]))
map(funcs, data) don't work with tuple of function ( Is there builtin function to do that simpler?