Skip to content

Commit 51b415e

Browse files
committed
edit pep8
1 parent c1dcdc9 commit 51b415e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

brain_games/game_logic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ def start_game(description, question_func):
1212

1313
if user_answer != str(correct_answer):
1414
print(
15-
f"'{user_answer}' is wrong answer ;(. Correct answer was '{correct_answer}'."
16-
)
15+
f"'{user_answer}' is wrong answer ;(. "
16+
f"Correct answer was '{correct_answer}'.")
1717
print(f"Let's try again, {name}!")
1818
return
1919

brain_games/scripts/brain_even.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ def main():
1919
correct_answer = "yes" if is_even(number) else "no"
2020

2121
if user_answer != correct_answer:
22-
print(
23-
f"'{user_answer}' is wrong answer ;(. Correct answer was '{correct_answer}'."
24-
)
25-
print(f"Let's try again, {user_name}!")
26-
return
22+
print(
23+
f"'{user_answer}' is wrong answer ;(. "
24+
f"Correct answer was '{correct_answer}'.")
25+
print(f"Let's try again, {user_name}!")
26+
return
2727

2828
print("Correct!")
2929

brain_games/scripts/brain_gcd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def main():
1818

1919
if not user_answer.isdigit() or int(user_answer) != correct_answer:
2020
print(
21-
f"'{user_answer}' is wrong answer ;(. Correct answer was '{correct_answer}'."
22-
)
21+
f"'{user_answer}' is wrong answer ;(. "
22+
f"Correct answer was '{correct_answer}'.")
2323
print(f"Let's try again, {user_name}!")
2424
return
2525

0 commit comments

Comments
 (0)