How to Code a Game of Hangman... The EASY Way!! (Beginner Python Tutorial)

Published: 05 January 2020
on channel: Kylie Ying
107,795
1.9k

One of the most common introductory Python projects is to code a game of Hangman. Almost all of MIT's introductory coding classes require you successfully program this fun little game.

Want to learn Python if you are an absolute beginner? Check out my in-depth beginner series:
   • Python for the Complete Beginner | Co...  

In this video, I show you how to program a game of hangman that you can play on your computer. I randomly select a word from a list of words then continuously ask for user input until you win. Then, I show you how to incorporate lives so you can't get unlimited guesses.

**NOTE: in the words function, you should add a ".upper()" to "return word" so that everything is uppercased

Please consider subscribing if you liked this video: https://www.youtube.com/c/ycubed?sub_...

Thanks for watching everyone!
~~~~~~~~~~~~~~~~~~~~~~~~
Source code: https://github.com/kying18/hangman
words.py - list of words that hangman can choose from
hangman.py - code that allows you to play a game of hangman
~~~~~~~~~~~~~~~~~~~~~~~~
Tags: hangman, python, python tutorial, how to code, how to code in python, beginner python programming tutorial, beginner python project, how to code in python for beginners, python programming for beginners, code games in python beginner, basic python tutorial, intro to python tutorial, introductory python lesson, python hangman tutorial, easy python hangman tutorial
~~~~~~~~~~~~~~~~~~~~~~~~
Follow me on Instagram:   / kylieyying  
Follow me on Twitter:   / kylieyying  
Check out my website: https://www.kylieying.com
~~~~~~~~~~~~~~~~~~~~~~~~
Music:
Track: Alan Walker - Fade [NCS Release]
Music provided by NoCopyrightSounds.
Watch:    • Video  


Watch video How to Code a Game of Hangman... The EASY Way!! (Beginner Python Tutorial) online without registration, duration hours minute second in high quality. This video was added by user Kylie Ying 05 January 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 107,795 once and liked it 1.9 thousand people.