Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a python program that does the following: - Asks the user for their name - Introduces the Hangman Game - List of a minimum

image text in transcribed
image text in transcribed
Write a python program that does the following: - Asks the user for their name - Introduces the Hangman Game - List of a minimum of 30 words. They are either 1 st generation Pokemon or Fruit - Each word must be 5 to 10 charcters in length - List of guessed letters - List of the incorrect guesses - Users are allowed to guess wrong 5 times on the 6 th time they loose and you tell them the word. - Verify that what they guessed is a letter in the alphabet Base program for creating the hangman graphic: hangman.py Submit your code to complete the assignment: either .py or .txt file. 1mport randon HANGMAN PICS =[1,1 def displayboard(missedLetters, correctletters, secretword): print (haNcMAN_pICS[len(missedtetters)]) print() print:('Missed letters:" end = " ") for letter in missedletters: print(letter, end=" ') print() blanks = "- " len(secretword) for i in range(Len(secretword)): = Replace blanks wath correctly guessed letters. if secretword[1] in correctletters: blanks = blanks [:1]+ secretword[1] + blanks [1+1:1] for letterin blanks: w show the secret word with spaces in between each letter. print(letiter;ende)print() Write a python program that does the following: - Asks the user for their name - Introduces the Hangman Game - List of a minimum of 30 words. They are either 1 st generation Pokemon or Fruit - Each word must be 5 to 10 charcters in length - List of guessed letters - List of the incorrect guesses - Users are allowed to guess wrong 5 times on the 6 th time they loose and you tell them the word. - Verify that what they guessed is a letter in the alphabet Base program for creating the hangman graphic: hangman.py Submit your code to complete the assignment: either .py or .txt file. 1mport randon HANGMAN PICS =[1,1 def displayboard(missedLetters, correctletters, secretword): print (haNcMAN_pICS[len(missedtetters)]) print() print:('Missed letters:" end = " ") for letter in missedletters: print(letter, end=" ') print() blanks = "- " len(secretword) for i in range(Len(secretword)): = Replace blanks wath correctly guessed letters. if secretword[1] in correctletters: blanks = blanks [:1]+ secretword[1] + blanks [1+1:1] for letterin blanks: w show the secret word with spaces in between each letter. print(letiter;ende)print()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions