Spaces:
Sleeping
Sleeping
Javierss
commited on
Commit
·
c8fdcfa
1
Parent(s):
6b41fd3
Add strip to input
Browse files
game.py
CHANGED
@@ -182,7 +182,7 @@ class Semantrix:
|
|
182 |
def play_game(self, word):
|
183 |
|
184 |
# Convert the word to lowercase
|
185 |
-
word = word.lower()
|
186 |
|
187 |
# Check if the user wants to give up
|
188 |
if word == "give_up":
|
|
|
182 |
def play_game(self, word):
|
183 |
|
184 |
# Convert the word to lowercase
|
185 |
+
word = word.lower().strip()
|
186 |
|
187 |
# Check if the user wants to give up
|
188 |
if word == "give_up":
|