Question about loops training module


#1

for num in 1...10
puts num
end

Why does the above code result in the following output? I expected numerals 1 thru 10 to display on the output screen

1
2
3
4
5
6
7
8
9
1...10


#2

The "..." operator does not include the last integer while the ".." operator includes the last integer.

Thus 1...10 gives you that result while 1..10 would give you the full range of 1 through 10

Hope that helps!

Edit: Speeling