Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Functional Requirements The solution to the puzzle will be on a text file. The user guesses a letter and enters it on the command line.
Functional Requirements The solution to the puzzle will be on a text file. The user guesses a letter and enters it on the command line. The program tells the user how many times that letter appears in the solution. The program also outputs the partial solution after each guess, showing blank spaces or placeholder characters for letters that have not been correctly guessed yet and showing correctly guessed letters in their accurate places in the solution message. Deliverable: Turn in your working code on a py file. I will test it. If it meets the functional requirements you get credit. Code Sample: The approach below borrows a couple things from Week 7 - Collections There are of course other ways to do this! guess = [] guess.append("s") guess.append("c") for letter in "succotash": if letter in guess: print(letter) else: print("")
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started