title: What's the matter, logic, reason?
body: <p>I'm a beginner in programming, and I started my journey with Python. In my view, as shown below in the code block, the output to be come does matter, like, I used to think multiple type variables couldn't be wrote in one single line of code, but after having this exercise from one of the sources I learn from, I changed my view. This is because the code's output wouldn't have any other variable type rather than than string, so the line of code was right. Is this view right, or is it some different case?</p>
  <hr />
  <p>Programming language= Python(version 3), IDE: PyCharm</p>
  <p>Below  is the code:</p>
  <hr />
  <pre><code>print(&quot;I said &quot; + (&quot;Hey &quot;*2) + &quot;Hey!&quot;)
  print(&quot;I said &quot;+&quot;Hey &quot;*2+&quot;Hey!&quot;)
  print(&quot;I said&quot;+&quot; Hey&quot;*3+&quot;!&quot;)
  </code></pre>
  <hr />
  <p>Below is the output:</p>
  <pre><code>I said Hey Hey Hey!
  
  I said Hey Hey Hey!
  
  I said Hey Hey Hey!
  </code></pre>