Skip to content

Commit 5c06473

Browse files
committed
исправлена стилистика комментария
1 parent 8ed4b67 commit 5c06473

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

brain_games/games/brain_calc_game.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ def brain_calc():
1111

1212
answer = 0
1313
while answer < 3:
14-
n1 = randrange(1, 51) #NOSONAR
15-
n2 = randrange(1, 51) #NOSONAR
16-
operator = choice(['+', '-', '*']) #NOSONAR
14+
n1 = randrange(1, 51) # NOSONAR
15+
n2 = randrange(1, 51) # NOSONAR
16+
operator = choice(['+', '-', '*']) # NOSONAR
1717

1818
if operator == "+":
1919
res = n1 + n2

brain_games/games/brain_gcd_game.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77

88
def get_question_answer():
9-
n1 = randrange(1, 51) #NOSONAR
10-
n2 = randrange(1, 51) #NOSONAR
9+
n1 = randrange(1, 51) # NOSONAR
10+
n2 = randrange(1, 51) # NOSONAR
1111
question = f'{n1} {n2}'
1212

1313
a = min(n1, n2)

brain_games/games/brain_prime_game.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
def get_question_answer():
9-
n = randrange(1, 101) #NOSONAR
9+
n = randrange(1, 101) # NOSONAR
1010
question = n
1111
if n < 2:
1212
is_prime = False

brain_games/games/brain_progression_game.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77

88
def get_question_answer():
9-
start = randrange(1, 11) #NOSONAR
10-
step = randrange(1, 6) #NOSONAR
9+
start = randrange(1, 11) # NOSONAR
10+
step = randrange(1, 6) # NOSONAR
1111
n = 10
1212
res = []
1313
for i in range(n):
1414
a = start + i * step
1515
res.append(str(a))
1616

17-
index = randrange(0, len(res)) #NOSONAR
17+
index = randrange(0, len(res)) # NOSONAR
1818
correct_answer = res[index]
1919
res[index] = '..'
2020
question = ' '.join(res)

brain_games/scripts/brain_even.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def parity_check():
1212

1313
answer = 0
1414
while answer < 3:
15-
n = randrange(1, 100) #NOSONAR
15+
n = randrange(1, 100) # NOSONAR
1616
print(f'Question: {n}')
1717
user_answer = prompt.string('Your answer: ')
1818
correct = 'yes' if n % 2 == 0 else 'no'

0 commit comments

Comments
 (0)