File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- from random import randint
1+ from random import randint , choice
22from brain_games .sample import samples
33
44
@@ -9,7 +9,7 @@ def type_brain_calc():
99 correct_answer = ''
1010 first_number = randint (1 , 25 )
1111 sec_number = randint (1 , 25 )
12- arithmetic_operation = random . choice (['+' , '-' , '*' ])
12+ arithmetic_operation = choice (['+' , '-' , '*' ])
1313 match arithmetic_operation :
1414 case '+' :
1515 correct_answer = first_number + sec_number
Original file line number Diff line number Diff line change 1- from random import randint
1+ from random import randint , choice
22from brain_games .sample import samples
33
44
@@ -13,7 +13,7 @@ def type_brain_progression():
1313 for _ in range (range_progressing ):
1414 re .append (str (first_num ))
1515 first_num += sec_num
16- index_replace_num = re .index (random . choice (re [1 :]))
16+ index_replace_num = re .index (choice (re [1 :]))
1717 replace_num = re [index_replace_num - 1 ]
1818 re .insert (index_replace_num , '..' )
1919 re .remove (re [index_replace_num - 1 ])
You can’t perform that action at this time.
0 commit comments