Skip to content

Commit 336aee8

Browse files
update game_skeleton.py
1 parent d520473 commit 336aee8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

brain_games/game_skeleton.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ def game_start(game):
1515
answer = get_answer(question)
1616

1717
if answer != correct:
18-
print(f"'{answer}' is wrong answer ;(. Correct answer was '{correct}'."
19-
f"\nLet's try again, {player}!")
18+
print(f"'{answer}' is wrong answer ;(."
19+
f"Correct answer was '{correct}'."
20+
f"\nLet's try again, {player}!")
2021
return
2122
print('Correct')
2223
total += 1

brain_games/games/prime.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
RULES = 'Answer "yes" if given number is prime. Otherwise answer "no".'
44

5+
56
def start_game():
67
num = randint(1, 100)
78
total = 0
@@ -15,4 +16,4 @@ def start_game():
1516
else:
1617
answaer = 'no'
1718

18-
return(question, answaer)
19+
return (question, answaer)

0 commit comments

Comments
 (0)