0
3 guesses
I have been struggling with this question and i could really do with some tips :) I can code for one guess, but coding for 3 guesses seems way above my head. create letter_guess() function that gives user 3 guesses takes a letter character argument for the answer letter gets user input for letter guess calls check_guess() with answer and guess End letter_guess if: check_guess() equals True, return True or after 3 failed attempts, return False
1 Answer
+ 8
Check it out, I made it with only one function as the other one seems a bit redundant for such a trivial task :)
https://code.sololearn.com/cEvpxXEDj1L0/?ref=app