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 b159704 commit f3b3434Copy full SHA for f3b3434
brain_games/games/prime.py
@@ -4,7 +4,6 @@
4
5
6
def is_prime(n: int) -> bool:
7
- """Проверяет, является ли число простым."""
8
if n < 2:
9
return False
10
if n % 2 == 0:
@@ -18,7 +17,6 @@ def is_prime(n: int) -> bool:
18
17
19
20
def get_round():
21
- """Возвращает кортеж (вопрос, правильный ответ)."""
22
number = random.randint(1, 100)
23
question = str(number)
24
correct_answer = "yes" if is_prime(number) else "no"
brain_games/games/progression.py
def make_progression(start, step, length):
- """Создаёт арифметическую прогрессию заданной длины."""
return [start + i * step for i in range(length)]
0 commit comments