This project is developed for learning and practicing Python.
Hangman project is consist of two parts.
1. Standalone hangman: use hangman.py as main file and words.py
2. GUI hangman: use gui.py as main file, word.py and hangman_func.py stored function for gui.py
This project is built with python3 and thier libraries as follows
- tkinter
- random
- string
Run as below with your cmd on project directory.
For Standalone hangman
python hangman.pyFor GUI hangman
python gui.py- Import file or own function from another folder
- Usage of random.choice
- Concat string with delimiter by using .join
- Usage of alphabet from string library
- Usage of list comprehension with if-else and for-in
- Usage of GUI from tkinter library
- Use global keyword that let variable can be accessed from outside of function