Skip to content

Commit 2505e4a

Browse files
committed
Обновил prime формат вопроса пользователю
1 parent 997b00e commit 2505e4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brain_games/games/prime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
rules = 'Answer "yes" if given number is prime. Otherwise answer "no".'
33
def get_round():
44
num = random.randint(1, 50)
5-
question = num
5+
question = f'Question: {num}'
66
for i in range(1, num):
77
if num % i == 0 and i != num and i != 1:
88
correct_answer = 'no'

0 commit comments

Comments
 (0)