here is my code
import numpy a = numpy.arange(0.5, 1.5, 0.1, dtype=numpy.float64) print(a) print(a.tolist()) >>>[0.5 0.6 0.7 0.8 0.9 1. 1.1 1.2 1.3