floats = [float(v) for v in integerList]
or less idiomatic floats = map(float, integerList) floats = [float(v) for v in integerList]
or less idiomatic floats = map(float, integerList) list(map(float, integerList))
for them to be equivalent.(It doesn't matter in a lot of cases, but there are enough edges where it does. Json serialization for one)