Skip to content

Commit 1c7a403

Browse files
committed
check 4.5
1 parent 435f556 commit 1c7a403

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

brain_games/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def game_engine(INSTRUCTION, game):
1414
if right_answer == answer:
1515
print('Correct!')
1616
else:
17-
print(f"'{answer}' is wrong answer;(. ", end='')
17+
print(f"'{answer}' is wrong answer ;(. ", end='')
1818
print(f"Correct answer was '{right_answer}'.")
1919
print(f"Let's try again, {name}!")
2020
return

brain_games/games/prime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def get_question_answer():
1313

1414
def is_prime(num):
1515
acc = 0
16-
for i in range(2, int(num ** (0.5))):
16+
for i in range(2, int(num ** (0.5) + 1)):
1717
if (num % i == 0):
1818
acc = acc + 1
1919
return acc == 0

0 commit comments

Comments
 (0)