Skip to content

Commit 12422e1

Browse files
committed
fix: errors from linter
1 parent 81e239c commit 12422e1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

brain_games/scripts/brain_even.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import prompt
21
import random
32

3+
import prompt
4+
45

56
def main():
6-
print('Welcome to the Brain Games!')
7+
print('Welcome to the Brain Games!')
78
name = prompt.string("May I have your name? ")
89
print(f"Hello, {name}! "
910
f"Answer \'yes\' if the number is even, otherwise answer \'no\'.")
@@ -15,7 +16,8 @@ def main():
1516
if answer == right_answer:
1617
print('Correct!')
1718
else:
18-
print(f"'{answer}' is wrong answer ;(. Correct answer was '{right_answer}'.\n"
19+
print(f"'{answer}' is wrong answer "
20+
f";(. Correct answer was '{right_answer}'.\n"
1921
f"Let\'s try again, {name}!")
2022
break
2123
else:

0 commit comments

Comments
 (0)