This is a personal memo.
About the difference between ..
and...
of range objects that represent consecutive numbers.
Whether to include the ending value
range object | End value |
---|---|
.. | Including |
... | Not included |
python
for i in 1..3
p i
end
##output
1
2
3
python
for i in 1...3
p i
end
##output
1
2
Recommended Posts