Tuesday, December 5, 2017

How to guess a word in python?

Time again for a game script. How it works This is a classic "guess a word" program.
The word to guess is represented by a row of dashes. If the player guess a letter which exists in the word, the script writes it in all its correct positions.  The player has 5 chances to guess the word. You can easily customize the game by changing the variables.
Code :



Save this program as “Guess the secret word.py” as shown below:


To start the guessing word, enter the user name.
Now the user can start guessing the word by entering characters, as shown below:

Enjoy it!


  1. Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site.R programming Training in chennai

  2. Very interesting. You can see that you are great in this industry. are you generally interested in programming or programming?
    I will be happy to learn more about cloud solutions because I plan to implement them from pro4people.com/aws-cloud-solutions/.
    What do you think about this solution? Do you think it's a good idea for a small company or not?

  3. Very interesting. You can see that you are great in this industry,providing individuals with a very spectacular possibility Thank you so Much

    Surya Informatics

  4. Your info is really amazing with impressive content..Excellent blog with informative concept. Really I feel happy to see this useful blog, Thanks for sharing such a nice blog..
    If you are looking for any Data science Related information please visit our website data science institutes in bangalore page!