Aug-21-2019, 02:50 PM
Hi there,
I am learning python from scratch, trying to solve a 'task', having some issues.
The task is:
Letter Guess¶
create letter_guess() function that gives user 3 guesses
I've tried many different things, but I think I struggle with building the function correctly. I would really appriciate if someone could show me how they would write this correctly so I can learn and apply it for the next tasks.
Thanks in advance!
I am learning python from scratch, trying to solve a 'task', having some issues.
The task is:
Letter Guess¶
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
I've tried many different things, but I think I struggle with building the function correctly. I would really appriciate if someone could show me how they would write this correctly so I can learn and apply it for the next tasks.
Thanks in advance!