title: For loop help me
body: <pre><code>word = {}
  a = input('love: ').split()
  
  for line in open('emotion.txt'):
    love, trust = line.split(',')
    word[love]=trust
  
  for i in a:  
  
    print(word[i])
  </code></pre>
  
  <p>Hello, I'm trying to make outcome in line when I print it.
  but I don't know how to get it printed in one line at last.
  this code's current outcome is.</p>
  
  <pre><code>I 
  love
  you
  </code></pre>
  
  <p>but I wanna make it as</p>
  
  <pre><code>I love you
  </code></pre>
  
  <p>thank you</p>