File tree Expand file tree Collapse file tree 11 files changed +28
-12
lines changed Expand file tree Collapse file tree 11 files changed +28
-12
lines changed Original file line number Diff line number Diff line change 1- from brain_games .cli import welcome_user
2- import operator
31import random
2+
43import prompt
54
5+ from brain_games .cli import welcome_user
6+
67name = welcome_user ()
78
9+
810def calc ():
911 print ('What is the result of the expression?' )
1012 count = 0
13+
1114 def add (num1 , num2 ):
1215 return num1 + num2
1316
Original file line number Diff line number Diff line change 1- from brain_games .cli import welcome_user
21import random
2+
33import prompt
44
5+ from brain_games .cli import welcome_user
6+
57name = welcome_user ()
68
9+
710def even ():
811 print ('Answer "yes" if the number is even, otherwise answer "no".' )
912 count = 0
Original file line number Diff line number Diff line change 1- from brain_games .cli import welcome_user
21from brain_games .scripts .main import greet
32
3+ from brain_games .cli import welcome_user
4+
45
56def main ():
67 greet ()
Original file line number Diff line number Diff line change 1- from brain_games .cli import welcome_user
21import math
32import random
3+
44import prompt
55
6+ from brain_games .cli import welcome_user
7+
68name = welcome_user ()
79
10+
811def gcd ():
912 print ('Find the greatest common divisor of given numbers.' )
1013 count = 0
Original file line number Diff line number Diff line change 1- from brain_games .cli import welcome_user
21import random
2+
33import prompt
44
5+ from brain_games .cli import welcome_user
6+
57name = welcome_user ()
68
9+
710def prime ():
811 count = 0
912 print ('Answer "yes" if given number is prime. Otherwise answer "no".' )
Original file line number Diff line number Diff line change 1- from brain_games .cli import welcome_user
21import random
2+
33import prompt
44
5+ from brain_games .cli import welcome_user
6+
57name = welcome_user ()
68
9+
710def progression ():
811 count = 0
912 print ('What number is missing in the progression?' )
Original file line number Diff line number Diff line change 1- from brain_games .games .brain_calc import calc , main
1+ from brain_games .games .brain_calc import main
22
33if __name__ == "__main__" :
44 main ()
Original file line number Diff line number Diff line change 1- from brain_games .games .brain_even import even , main
1+ from brain_games .games .brain_even import main
22
33if __name__ == "__main__" :
44 main ()
Original file line number Diff line number Diff line change 1- from brain_games .games .brain_gcd import gcd , main
1+ from brain_games .games .brain_gcd import main
22
33if __name__ == "__main__" :
44 main ()
Original file line number Diff line number Diff line change 1- from brain_games .games .brain_prime import prime , main
1+ from brain_games .games .brain_prime import main
22
33if __name__ == "__main__" :
44 main ()
You can’t perform that action at this time.
0 commit comments