-
Notifications
You must be signed in to change notification settings - Fork 0
/
Calulator.py
46 lines (41 loc) · 1.23 KB
/
Calulator.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
import os
import functions
import color
def clear(): return os.system('cls')
output = 0
Allnumbers = []
active = True
answer = "n"
while active == True:
print(color.bcolors.OKGREEN +
"\nwelcome to MY suka balde calculator bim bom boomm\n")
while answer == "n":
output = functions.new_output()
print(output)
Allnumbers.append(output)
answer = input(
'press N for new output press C to conteniue press H for history\n')
clear()
if answer == 'e':
print(Allnumbers)
active = False
while answer == 'c':
output = functions.con(output)
print(output)
answer = input(
'press N for new output press C to conteniue press H for history\n')
clear()
if answer == 'n' or answer == 'h':
Allnumbers.append(output)
elif answer == 'e':
print(Allnumbers)
active = False
while answer == 'h':
output = functions.history(Allnumbers)
print(output)
Allnumbers.append(output)
answer = input(
'press N for new output press C to conteniue press H for history\n')
clear()
if answer == 'e':
active = False