title: Pulling a random word/string from a line in a text file in python
body: <p>I have a text file that has six words on one line, I need to randomly generate a word from that line. The text file name is WordsForGames.txt. I am making a hangman game. This what I have so, far. I am a little lost please help</p>
  
  <pre><code>import random
  import os
  print(" Welcome to the HangMan game!!\n","You will have six guesses to get the answer correct, or you will loose!!!",)
  words = open("../WordsForGames.txt")
  </code></pre>