Hangman Game in Python

Vinayak Pandey
1 min readSep 9, 2020

--

In this post we’ll see how to make a cool and simple game in Python, called Hangman.

If you don’t know how to play hangman game, as per https://www.considerable.com/entertainment/games/hangman/ “One player thinks of a word or phrase; the others try to guess what it is one letter at a time. The player draws a number of dashes equivalent to the number of letters in the word. If a guessing player suggests a letter that occurs in the word, the other player fills in the blanks with that letter in the right places.”

So let’s get started.

Step 1: Download list of words given at https://raw.githubusercontent.com/vinycoolguy2015/awslambda/master/words.txt and code given at https://raw.githubusercontent.com/vinycoolguy2015/awslambda/master/hangman.py

Step 2: Now execute the code and let the game begin:

Now you are ready for some fun time.

--

--

Vinayak Pandey
Vinayak Pandey

Written by Vinayak Pandey

Experienced Cloud Engineer with a knack of automation. Linkedin profile: https://www.linkedin.com/in/vinayakpandeyit/

No responses yet