On 24 February 2010 12:58, Shurui Liu (Aaron Liu) <shuru...@gmail.com> 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!
Remember to include your error messages instead of saying "it doesn't work". It appears that range only supports integers. I did a quick search for "python float range" and the first link was the following: http://code.activestate.com/recipes/66472/ HTH, benno _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor