Skip to content

Commit 9fbc248

Browse files
committed
added a WIP script and small changes to some other scripts
1 parent 9c96f40 commit 9fbc248

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

b_tree.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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()

mobile_app/KvCalc.exe

24.9 MB
Binary file not shown.

mobile_app/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import secrets
1+
from secrets import choice
22
from pathlib import Path
33

44
from kivy.app import App
@@ -40,7 +40,7 @@ def build(self):
4040
button = Button(
4141
text=label,
4242
pos_hint={"center_x": 0.5, "center_y": 0.5},
43-
background_color=secrets.choice(colors),
43+
background_color=choice(colors),
4444
background_normal=str(absolute),
4545
)
4646

@@ -51,7 +51,7 @@ def build(self):
5151
equals_button = Button(
5252
text="=",
5353
pos_hint={"center_x": 0.5, "center_y": 0.5},
54-
background_color=secrets.choice(colors),
54+
background_color=choice(colors),
5555
background_normal=str(absolute),
5656
)
5757
equals_button.bind(on_press=self.on_solution)

zip.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import time
2-
31
a = ["Michael, William, Harper"]
42
b = ["John, Evelyn, Ryan"]
53

@@ -9,5 +7,3 @@ def trying_zip():
97

108

119
trying_zip()
12-
13-
print(time.process_time())

0 commit comments

Comments
 (0)