Create a List of secret words and randomly pick a word. Now represent each word as _ and give user chances to guess the word if the user guesses the word right then replace _ with the word.
first install time package in your system open your terminal and write pip install time
this will install time module in your system and random module is already install in python by itself so don't waste your time. Now make file program.py
or whatever your choice and write program from program.py file and run it.
Make sure you have installed the necessary packages listed in requirements.txt
, then simply run program.py
.