I was just starting to learn and use python when I've found this thing I can't understand. The code follows: from string import * def tolist(line): return(map(float, split(line))) print(tolist('0.1')) print(float('0.1')) Why do I get different results instead of: [0.1] 0.1 ?