def inverse(x): return 1.0 / float(x) print( map(inverse, range(1,10)) )