list of range of floats

Matimus mccredie at gmail.com
Wed Feb 14 12:38:08 EST 2007


> fits = list(float(a) for a in range(0, 10))

Another way of writing that:

flts = map(float,range(10))




More information about the Python-list mailing list