Skip to content

Commit

Permalink
Updating the Project
Browse files Browse the repository at this point in the history
  • Loading branch information
JawadSher committed May 24, 2024
1 parent a30d428 commit a30886d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Project 3 - Hungman Game/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
wordList = fruitList + animalList
word = random.choice(wordList)
category = word_Category[word]
print(word)

if __name__ == '__main__':
print(f'Guess the word! : Hint - Category {category}')

Expand All @@ -29,6 +29,7 @@
try:
while(rounds and flag == 0):
guess = input("Inter a letter : ")

if not guess.isalpha:
print("Only Alhpabetic Character Allowed")
if len(guess) != 1:
Expand Down

0 comments on commit a30886d

Please sign in to comment.