This is a text based of hang man game. For more info about the game check: [https://en.wikipedia.org/wiki/Hangman_(game)]
You can play the game aganist the comuter. The computer chooses a random word from "words.txt". You can also choose the word yourself as follows:
{
hangman("word")
}
{
secretWord = chooseWord(wordlist).lower()
hangman(secretWord)
}
python 3.x