#! /usr/local/bin/python3 def drange(start, stop, step): i = 1 s = start while s < stop: yield s s = start + step * i i += 1 print(list(drange(17.8,20,0.1)))