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