-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselector.py
More file actions
36 lines (33 loc) · 1.14 KB
/
selector.py
File metadata and controls
36 lines (33 loc) · 1.14 KB
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
import helpers
import operations
import platform
TYPE_PLATFORM = platform.system()
def validateSelection(select):
match select:
case '1':
helpers.whatSystem(TYPE_PLATFORM)
print("Sum Operation: ")
operations.operationSum()
case '2':
helpers.whatSystem(TYPE_PLATFORM)
print("Substraction Operation: ")
operations.operationSubstraction()
case '3':
helpers.whatSystem(TYPE_PLATFORM)
print("Multiplication Operation: ")
operations.operationMultiplication()
case '4':
helpers.whatSystem(TYPE_PLATFORM)
print("Division Operation: ")
operations.operationDivision()
case '5':
helpers.whatSystem(TYPE_PLATFORM)
print("Potencia Operation: ")
operations.operationPotencia()
case '6':
helpers.whatSystem(TYPE_PLATFORM)
print("Saliste de la calculadora...")
exit()
case _: # Default
helpers.whatSystem(TYPE_PLATFORM)
print("Ingresa la opcion correcta.")