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: http://code.activestate.com/recipes/577068-floating-point-range/ -- Steven D'Aprano _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor