-
Notifications
You must be signed in to change notification settings - Fork 0
/
variacode.py
120 lines (88 loc) · 1.94 KB
/
variacode.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import time
import random
import os
import games
import calc
global textperm
textperm = "False"
# VariaCode related thing
def text(arg):
print(arg)
def sleep(arg1):
time.sleep(arg1)
def clear():
os.system("clear")
def random_num(arg2, arg3):
arg4 = random.randint(arg2, arg3)
return arg4
if textperm == "True":
print(arg4)
def random_letter(arg5, arg6):
arg7 = random.randint(arg5, arg6)
if textperm == "True":
print(arg7)
def userprompt(prompt):
usarp = input(prompt)
if textperm == "True":
print(usarp)
def numbprompt(prompt):
usar = int(input(prompt))
if textperm == "True":
print(usar)
def higher(num1, num2):
if num1 > num2:
# Change code
something = 0
def less(num3, num4):
if num3 < num4:
# Change code
something = 0
def equ4l(num5, num6):
if num5 == num6:
# Change code
while True:
if num5 == num6:
break
def equal(num5, num6):
if num5 == num6:
# Change code
something = 0
def leave():
exit()
def windowsonly_startfile(arg1):
os.startfile(arg1)
def kind(str):
helper = type(str)
print(f"It is a {helper}")
def lenght(str):
helper = len(str)
if helper == 1:
print(f"It has {helper} character")
elif helper > 1:
print(f"It has {helper} characters")
else:
print("it has none :v")
def first_cap(variable):
helper = variable.capitalize()
print(helper)
def round_nums(num, num1):
num3 = round(num, num1)
print(num3)
def loading_text(text, times):
x = 0
while True:
print(text)
time.sleep(0.2)
clear()
print(f"{text}.")
time.sleep(0.2)
clear()
print(f"{text}..")
time.sleep(0.2)
clear()
print(f"{text}...")
time.sleep(0.2)
clear()
x += 1
if x == times:
break