title: Join strings from for loop into a single line
body: <p>I have a grammar tag producing nltk block which is,</p>
  
  <pre><code>    sent_text = nltk.sent_tokenize(text) # this gives us a list of sentences
      # now loop over each sentence and tokenize it separately
      for sentence in sent_text:
            tokenized_text = nltk.word_tokenize(sentence)
            tagged = nltk.pos_tag(tokenized_text) 
            for word, tag in tagged:
                 print(tag)
  </code></pre>
  
  <p>This gives me the following output,</p>
  
  <pre><code>    DT
      JJ
      NN
      NN
      VBD
      IN
      DT
      JJ
      NN
  </code></pre>
  
  <p>However, I want the output to single lined like </p>
  
  <pre><code>    DT JJ NN NN VBD IN DT JJ NN      
  </code></pre>
  
  <p>How do I do this?  </p>