output = []
stuff = ['candy', '1.3', '1.23']
floats = map(float, stuff[1:])
tuples = (stuff[0], floats)
output.append(tuples)
print(output)
instead of printing out [('candy',[1.3,1.23])]
as intended, it prints out:
[('candy', <map object at 0x00000000038AD940>)]
I don't know whats wrong please show me the fix.