[Tutor] range query

kevin parks cpsoct@lycos.com
Fri, 19 Jan 2001 23:07:50 +0900

how come range only works with integers? Is there a way to do the same thing with floats-value steps? It seems very unPython like to me.

why can't you do this:
range(3, 0.5)

[0.0 ,0.5, 1.0, 1.5, 2.0, 2.5, 3.0]


inquiring minds want to know...

Seoul, Korea

Get your small business started at Lycos Small Business at http://www.lycos.com/business/mail.html