Skip to content

natnew/Python-Projects-Hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Python-Projects-Hangman 🐍

This repo contains python code that simulates playing hangman.
Run the code.

Simple version

Python

# Write your code here
print("H A N G M A N")


words = ['python', 'java', 'kotlin', 'javascript']


guess = input("Guess the word: ")



if guess not in words:
    print("You lost!")
else:
    print("You survived!")

Output

Guess the word:
python
You won!

Challenging version

Python

Output

About

Python Projects Hangman

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages