One limitation of range
is that is can only work with integers, which are positive or negative whole numbers. If you need to generate a list of floats, which are numbers with a decimal portion, then you can use NumPy. To confirm that you have NumPy installed, drop into a Python shell and run the following:
>>> import numpy
sroux53 on May 18, 2020
Excellent !