How to print a range with decimal points in Python?

Posted by jabo on Stack Overflow See other posts from Stack Overflow or by jabo
Published on 2010-03-13T20:01:55Z Indexed on 2010/03/13 20:25 UTC
Read the original article Hit count: 238

Filed under:
|
|

I can print a range of numbers easily using range, but is is possible to print a range with 1 decimal place from -10 to 10?

e.g

-10.0, -9.9, -9.8 all they way through to +10?

© Stack Overflow or respective owner

Related posts about python

Related posts about range