MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / is_valid_guess

Function is_valid_guess

HangMan/HangMan.py:4–5  ·  view source on GitHub ↗
(guess)

Source from the content-addressed store, hash-verified

2
3# Function to check if a character is a valid lowercase letter
4def is_valid_guess(guess):
5 return guess.isalpha() and guess.islower() and len(guess) == 1
6
7# Function to display the current state of the word with placeholders for unguessed letters
8def display_word(secret_word, guessed):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected