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 :
C:\Users\SSS2014033\Desktop\cs1.JPG

C:\Users\SSS2014033\Desktop\c2.JPG

C:\Users\SSS2014033\Desktop\c3.JPG

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

C:\Users\SSS2014033\Desktop\gs1.png


To start the guessing word, enter the user name.
C:\Users\SSS2014033\Desktop\gs2.png
Now the user can start guessing the word by entering characters, as shown below:
C:\Users\SSS2014033\Desktop\gs3.png


Enjoy it!

9 comments:

  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

    ReplyDelete
  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?

    ReplyDelete
  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

    ReplyDelete
  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!

    ReplyDelete
  5. Very useful and informative blog. Thank you so much for these kinds of informative blogs.
    We are also a graphic services in gurgaon and we provide the website design services,
    web design services, web designing services, logo design services.
    please visit our website to see more info about this.
    Freelance Graphic Designing
    Freelance Catalogue Designing in delhi
    Freelance Catalogue Designing in gurgaon
    Freelance Brochure Designing
    Freelance Label Designing
    Freelance Banner Designer
    Freelance Poster Designer
    graphic design services in delhi
    graphic design services in gurgaon
    Freelance Catalogue Designing in delhi
    Freelance Catalogue Designing in gurgaon
    Freelance Brochure Designing
    Freelance Label Designing
    Freelance Banner Designer
    Freelance Poster Designer
    graphic design services in delhi
    graphic design services in gurgaon
    Freelance Catalogue Designing in delhi
    Freelance Catalogue Designing in gurgaon
    Freelance Brochure Designing
    Freelance Label Designing
    Freelance Banner Designer
    Freelance Poster Designer
    graphic design services in delhi
    graphic design services in gurgaon
    Freelance Catalogue Designing in delhi
    Freelance Catalogue Designing in gurgaon
    Freelance Brochure Designing
    Freelance Label Designing
    Freelance Banner Designer
    Freelance Poster Designer
    graphic design services in delhi
    graphic design services in gurgaon
    graphic designer in gurgaon
    freelance graphic designer in gurgaon
    freelance graphic designer in gurgaon
    freelance graphic designer in gurgaon
    freelance logo designer in gurgaon
    freelance logo designer in gurgaon
    freelance web designer in gurgaon

    ReplyDelete
  6. Thanks for sharing your innovative ideas to our vision. I have read your blog and I gathered some new information through your blog. Your blog is really very informative and unique. Keep posting like this. Awaiting for your further update. If you are looking for any Python programming related information, please visit our website Python training institute in Bangalore

    ReplyDelete