title: What is the difference between print and puts?
body: <p>For example in this line of code I wrote, <code>print</code> and <code>puts</code> produce different results.</p>
  
  <pre><code>1.upto(1000).each { |i| print i if i % 2 == 0 }
  </code></pre>