Spaces:
Sleeping
Sleeping
smhavens
commited on
Commit
·
cfd2220
1
Parent(s):
a87b166
Update list design
Browse files
app.py
CHANGED
@@ -110,10 +110,15 @@ def check_answer(guess:str):
|
|
110 |
global guesses
|
111 |
global answer
|
112 |
guesses.append(guess)
|
|
|
|
|
|
|
|
|
|
|
113 |
if guess.lower() == answer.lower():
|
114 |
-
return "Correct!",
|
115 |
else:
|
116 |
-
return "Try again!",
|
117 |
|
118 |
def main():
|
119 |
word1 = "Black"
|
|
|
110 |
global guesses
|
111 |
global answer
|
112 |
guesses.append(guess)
|
113 |
+
output = ""
|
114 |
+
for guess in guesses:
|
115 |
+
output += ("- " + guess + "\n")
|
116 |
+
output = output[:-2]
|
117 |
+
|
118 |
if guess.lower() == answer.lower():
|
119 |
+
return "Correct!", output
|
120 |
else:
|
121 |
+
return "Try again!", output
|
122 |
|
123 |
def main():
|
124 |
word1 = "Black"
|