wtjj 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wtjj-0.1.0/PKG-INFO +5 -0
- wtjj-0.1.0/pyproject.toml +8 -0
- wtjj-0.1.0/setup.cfg +4 -0
- wtjj-0.1.0/wtjj/__init__.py +7 -0
- wtjj-0.1.0/wtjj/core.py +47 -0
- wtjj-0.1.0/wtjj.egg-info/PKG-INFO +5 -0
- wtjj-0.1.0/wtjj.egg-info/SOURCES.txt +7 -0
- wtjj-0.1.0/wtjj.egg-info/dependency_links.txt +1 -0
- wtjj-0.1.0/wtjj.egg-info/top_level.txt +1 -0
wtjj-0.1.0/PKG-INFO
ADDED
wtjj-0.1.0/setup.cfg
ADDED
wtjj-0.1.0/wtjj/core.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import math
|
|
2
|
+
import tkinter as tk
|
|
3
|
+
import random
|
|
4
|
+
def add(*args):
|
|
5
|
+
return sum(args)
|
|
6
|
+
def sub(sa,sb):
|
|
7
|
+
return sa - sb
|
|
8
|
+
def iq(u=None):
|
|
9
|
+
if u is None:
|
|
10
|
+
return random.randint(40,80)
|
|
11
|
+
else:
|
|
12
|
+
return random.randint(100,140)
|
|
13
|
+
def mul(*args):
|
|
14
|
+
if not args:
|
|
15
|
+
return 1
|
|
16
|
+
return math.prod(args)
|
|
17
|
+
def div(da,db):
|
|
18
|
+
return da / db
|
|
19
|
+
def window(color = 'black'):
|
|
20
|
+
root = tk.Tk()
|
|
21
|
+
root.geometry("800x800")
|
|
22
|
+
root.title("window")
|
|
23
|
+
root.configure(bg=color)
|
|
24
|
+
root.mainloop()
|
|
25
|
+
def dice(a=1,b=6):
|
|
26
|
+
return random.randint(a,b)
|
|
27
|
+
def evens(a=1,b=10):
|
|
28
|
+
b = b + 1
|
|
29
|
+
even = []
|
|
30
|
+
for i in range(a,b):
|
|
31
|
+
if i % 2 == 0:
|
|
32
|
+
even.append(i)
|
|
33
|
+
return even
|
|
34
|
+
def odds(a=1,b=10):
|
|
35
|
+
b = b + 1
|
|
36
|
+
odd = []
|
|
37
|
+
for i in range(a,b):
|
|
38
|
+
if i % 2 != 0:
|
|
39
|
+
odd.append(i)
|
|
40
|
+
return odd
|
|
41
|
+
def tris(a=1,b=10):
|
|
42
|
+
triangular = []
|
|
43
|
+
for i in range(a,b + 1):
|
|
44
|
+
triangular.append(i * (i + 1) // 2)
|
|
45
|
+
return triangular
|
|
46
|
+
def tri(n=1):
|
|
47
|
+
return n * (n + 1) // 2
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
wtjj
|