We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d520473 commit 336aee8Copy full SHA for 336aee8
brain_games/game_skeleton.py
@@ -15,8 +15,9 @@ def game_start(game):
15
answer = get_answer(question)
16
17
if answer != correct:
18
- print(f"'{answer}' is wrong answer ;(. Correct answer was '{correct}'."
19
- f"\nLet's try again, {player}!")
+ print(f"'{answer}' is wrong answer ;(."
+ f"Correct answer was '{correct}'."
20
+ f"\nLet's try again, {player}!")
21
return
22
print('Correct')
23
total += 1
brain_games/games/prime.py
@@ -2,6 +2,7 @@
2
3
RULES = 'Answer "yes" if given number is prime. Otherwise answer "no".'
4
5
+
6
def start_game():
7
num = randint(1, 100)
8
total = 0
@@ -15,4 +16,4 @@ def start_game():
else:
answaer = 'no'
- return(question, answaer)
+ return (question, answaer)
0 commit comments