Difference between .. and ... in Ruby : <p>What is the difference between .. and ... in a ruby for loop.</p>

<pre><code>for num in 1..5
    puts num
end
</code></pre>

<p>vs</p>

<pre><code>for num in 1...5
    puts num
end
</code></pre>

<p>How are those two loops different.</p>
