[Tutor] ask

Steven D'Aprano steve at pearwood.info
Wed Feb 24 16:13:58 CET 2010

On Wed, 24 Feb 2010 02:58:52 pm Shurui Liu (Aaron Liu) wrote:
> This time is not my assignment, I promise.
> In python, when we want to list numbers, we use the command "range",
> like, if we want to list integer from 0 to 9, we can write:
> range(10); if we want to list integer from 10 to 29, we can write:
> range(10,30). I was going to show a list of number from 1.0 to 1.9,
> and I did this in the same way as integer: range(1.0,2.0,0.1), but it
> doesn't work. Can you help me? Thank you!

Hope this helps:


Steven D'Aprano

More information about the Tutor mailing list