title: Get result in one line loop
body: <p>My output:</p>
  <pre><code>I have CMShehbaz
  CMShehbaz
  </code></pre>
  <p>Expected:</p>
  <pre><code>I have CMShehbaz CMShehbaz
  </code></pre>
  <p>I am trying get result in one line. I tried with <code>end=&quot;&quot;</code>, concat <code>+</code>, but did not
  work. I want result in one line.</p>
  <pre><code>lines = []
  with open('user.txt') as f:
      lines = f.readlines()
  
  count = 0
  for line in lines:
      count += 1
      print(&quot;I have {}  {}&quot;.format(line,line) )
      print(f'line {count}: {line}')
  </code></pre>