range
start:end
start:step:end
range(start, end)
range(start, end, step)
range(string)
Create a range. Lower bound of the range is included, upper bound is excluded.
Try it yourself:
$1 | 1:5
| |
$2 | 3:-1:-3
| |
$3 | range(3, 7)
| |
$4 | range(0, 12, 2)
| |
$5 | range("4:10")
| |
$6 | range(1m, 1m, 3m)
| |
$7 | a = [1, 2, 3, 4; 5, 6, 7, 8]
| |
$8 | a[1:2, 1:2]
|