Skip to content

Commit b28780f

Browse files
author
shmelevik
committed
delete \n in brain-even.py
1 parent 3979e62 commit b28780f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
-1 Bytes
Binary file not shown.

brain_games/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
def welcome_user():
55
print('Welcome to the Brain Games!')
66
name = prompt.string('May I have your name? ')
7-
print(f'Hello, {name}!\n')
7+
print(f'Hello, {name}!')
88

99
return name
-3 Bytes
Binary file not shown.

brain_games/scripts/games/brain_even.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
def is_even_game(name):
1111
sleep(1)
12-
print('Answer "yes" if the number is even, otherwise answer "no".\n')
12+
print('Answer "yes" if the number is even, otherwise answer "no".')
1313
sleep(1)
1414

1515
correct_guesses = 0
@@ -25,12 +25,12 @@ def is_even_game(name):
2525

2626
return
2727

28-
print('Correct!\n')
28+
print('Correct!')
2929
sleep(1)
3030

3131
correct_guesses += 1
3232

33-
print(f'Congratulations, {name}!\n')
33+
print(f'Congratulations, {name}!')
3434

3535
return
3636

0 commit comments

Comments
 (0)