title: How does this line of code allow [end=" "] to apply in between of the letters?
body: <p>So, I was studying basic things about Python. I encountered print function that basically prints something. </p>
  
  <p>I learned that I could use <code>[end=""]</code> to end the print function. 
  For example,</p>
  
  <pre><code>my_job = 'hacker'
  print(my_job, end="")
  </code></pre>
  
  <p>Basically gives me,</p>
  
  <pre><code>hacker
  </code></pre>
  
  <p>Another example, using the same values as above,</p>
  
  <pre><code>print(my_job, end="test")
  </code></pre>
  
  <p>Basically gives me, </p>
  
  <pre><code>hackertest
  </code></pre>
  
  <p>However, I then saw a cool thread in this site about how does the <code>[end=""]</code> function really works. I then noticed @Ritesh Karwa post this code,</p>
  
  <pre><code>myjob = 'hacker'
  for c in myjob: print(c, end=" ")
  </code></pre>
  
  <p>Basically gave him, </p>
  
  <pre><code>h a c k e r
  </code></pre>
  
  <p>I know that the space inside the "" in the <code>[end=]</code> allowed the output to have spaces, but just how did that work? I mean, removing the [for c in myjob:] and only using the print function, the output became,</p>
  
  <pre><code>hacker
  </code></pre>
  
  <p>What is the mechanism behind this <code>[for c in myjob:]</code> that allowed the <code>[end=]</code> to apply spaces in between of the letters, resulting into this output,</p>
  
  <pre><code>h a c k e r
  </code></pre>
  
  <p>I wanted to ask @Ritesh Karwa directly through comments, but I don't have enough reputation. I'm not confident that I asked my question clearly, but I did my best. Thank you in advance for the helpful answers. I'm also using Python 3.xx</p>