title: Printing on a new line every time I run?
body: <p>My code below:</p>
  
  <pre><code>import random
  lines = open('/Users/xxx/Desktop/wordlist.text).read().splitlines()
  words random.choice(lines)
  
  guesses = ''
  turns = 10
  while turns &gt; 0:
      failed = 0
      for char in word:
          if char = " "
              print (char),
          elif char in guesses:
              print(char)
          else:
              print("_")
              failed += 1
  
      if failed == 0
          print("You won")
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>Start Guessing
  _
  _
  _
  _
  _
  _
  guess a character:
  </code></pre>
  
  <p>How do I make it so that the underscores are next to each other like this:</p>
  
  <pre><code>_ _ _ _ _ _  
  </code></pre>
  
  <p>I don't understand why they are printing on new lines every time?</p>