range
l
range
produces a ÒrangeÓ of numbers
l
range(1, 10)
==>
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
l
l
There is also a 3-argument version, in which the
increment can be specified:
l
range(1, 4.5, 0.5)
==>
[1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5]
l
Type signature of range?