Skip to content

Commit f3b3434

Browse files
committed
Some fix
1 parent b159704 commit f3b3434

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

brain_games/games/prime.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
def is_prime(n: int) -> bool:
7-
"""Проверяет, является ли число простым."""
87
if n < 2:
98
return False
109
if n % 2 == 0:
@@ -18,7 +17,6 @@ def is_prime(n: int) -> bool:
1817

1918

2019
def get_round():
21-
"""Возвращает кортеж (вопрос, правильный ответ)."""
2220
number = random.randint(1, 100)
2321
question = str(number)
2422
correct_answer = "yes" if is_prime(number) else "no"

brain_games/games/progression.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
def make_progression(start, step, length):
7-
"""Создаёт арифметическую прогрессию заданной длины."""
87
return [start + i * step for i in range(length)]
98

109

0 commit comments

Comments
 (0)