BUG: Hangman (Python) had a List-vs-Str comparison

MAINT: Add type annotations to find such issues
This commit is contained in:
Martin Thoma
2022-03-31 10:33:11 +02:00
parent b31c624703
commit ae0b6a5015
22 changed files with 347 additions and 365 deletions

View File

@@ -192,7 +192,7 @@ if __name__ == "__main__":
help = input("\nDO YOU WANT INSTRUCTIONS(YES OR NO)? ")
# Printing Instruction
if help == "YES" or help == "yes" or help == "Yes":
if help.lower() == "yes":
print_instruction()
# Initialize Game