[Tutor] floating point range() ?

Dave S pythontut at pusspaws.net
Thu Jun 17 13:33:52 EDT 2004


Is there a floating point range() type builtin ?

I need to generate a sequence for a 'for loop' every 0.5

for i in reange(0,1000,5)
    j=float(i)/10
    print j

The above works but seems clumbsy.

Is there a better way ?

Dave



More information about the Tutor mailing list