title: How can i join words in an array to form a single line sentence without it spanning to a new line
body: <p>i have tried this:</p>
  <pre><code>mystring=input()
  
  mystring=mystring.split()
  for word in mystring:
      newword=word[1:]+word[0]
      print(&quot;&quot;.join(newword))
  </code></pre>
  <p>Input:</p>
  <pre><code>hello world
  </code></pre>
  <p>the output for the above input:</p>
  <pre><code>elloh
  orldw
  </code></pre>
  <p>The expected output should be:</p>
  <pre><code>elloh orldw 
  </code></pre>