> fits = list(float(a) for a in range(0, 10)) Another way of writing that: flts = map(float,range(10))