File tree 4 files changed +17
-7
lines changed
4 files changed +17
-7
lines changed Original file line number Diff line number Diff line change
1
+ def b_tree (node1 = 0 , node2 = 1 ):
2
+ key1 = {node1 : node2 }
3
+ key2 = {node2 : node1 }
4
+ keys = (key1 , key2 )
5
+ max_len = max (len (key1 ), len (key2 ))
6
+ min_len = min (len (key1 ), len (key2 ))
7
+ for leaf_page in keys :
8
+ print (leaf_page )
9
+ if len (leaf_page ) > max_len or len (leaf_page ) < min_len :
10
+ return leaf_page
11
+ return leaf_page
12
+
13
+
14
+ b_tree ()
Original file line number Diff line number Diff line change 1
- import secrets
1
+ from secrets import choice
2
2
from pathlib import Path
3
3
4
4
from kivy .app import App
@@ -40,7 +40,7 @@ def build(self):
40
40
button = Button (
41
41
text = label ,
42
42
pos_hint = {"center_x" : 0.5 , "center_y" : 0.5 },
43
- background_color = secrets . choice (colors ),
43
+ background_color = choice (colors ),
44
44
background_normal = str (absolute ),
45
45
)
46
46
@@ -51,7 +51,7 @@ def build(self):
51
51
equals_button = Button (
52
52
text = "=" ,
53
53
pos_hint = {"center_x" : 0.5 , "center_y" : 0.5 },
54
- background_color = secrets . choice (colors ),
54
+ background_color = choice (colors ),
55
55
background_normal = str (absolute ),
56
56
)
57
57
equals_button .bind (on_press = self .on_solution )
Original file line number Diff line number Diff line change 1
- import time
2
-
3
1
a = ["Michael, William, Harper" ]
4
2
b = ["John, Evelyn, Ryan" ]
5
3
@@ -9,5 +7,3 @@ def trying_zip():
9
7
10
8
11
9
trying_zip ()
12
-
13
- print (time .process_time ())
You can’t perform that action at this time.
0 commit comments