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 435f556 commit 1c7a403Copy full SHA for 1c7a403
brain_games/engine.py
@@ -14,7 +14,7 @@ def game_engine(INSTRUCTION, game):
14
if right_answer == answer:
15
print('Correct!')
16
else:
17
- print(f"'{answer}' is wrong answer;(. ", end='')
+ print(f"'{answer}' is wrong answer ;(. ", end='')
18
print(f"Correct answer was '{right_answer}'.")
19
print(f"Let's try again, {name}!")
20
return
brain_games/games/prime.py
@@ -13,7 +13,7 @@ def get_question_answer():
13
def is_prime(num):
acc = 0
- for i in range(2, int(num ** (0.5))):
+ for i in range(2, int(num ** (0.5) + 1)):
if (num % i == 0):
acc = acc + 1
return acc == 0
0 commit comments