Skip to content

Commit ff12580

Browse files
committed
corrections ruff comments
1 parent b440889 commit ff12580

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

brain_games/scripts/games/brain_calc.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
from brain_games.scripts.hello_user import weclome_user
2-
from brain_games.scripts.helper_script import checking_answers
31
import random
2+
43
import prompt
54

5+
from brain_games.scripts.hello_user import weclome_user
6+
from brain_games.scripts.helper_script import checking_answers
7+
8+
69
def main():
710
name = weclome_user()
811
print('What is the result of the expression?')
@@ -27,5 +30,6 @@ def main():
2730
break
2831
count += 1
2932

33+
3034
if __name__ == '__main__':
3135
main()

brain_games/scripts/games/brain_even.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
from brain_games.scripts.hello_user import weclome_user
2-
from brain_games.scripts.helper_script import checking_answers
31
import random
2+
43
import prompt
54

5+
from brain_games.scripts.hello_user import weclome_user
6+
from brain_games.scripts.helper_script import checking_answers
7+
8+
69
def main():
710
name = weclome_user()
811
print('Answer "yes" if the number is even, otherwise answer "no".')
@@ -22,5 +25,6 @@ def main():
2225
break
2326
count += 1
2427

28+
2529
if __name__ == '__main__':
2630
main()

brain_games/scripts/hello_user.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import prompt
22

3+
34
def weclome_user():
45
print('Welcome to the Brain Games!')
56
name = prompt.string('May I have your name? ')

brain_games/scripts/helper_script.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from brain_games.scripts.hello_user import weclome_user
21

32
def checking_answers(flag, answer, count, name):
43
if answer == flag:

0 commit comments

Comments
 (0)