-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFirstTest.py
More file actions
45 lines (30 loc) · 912 Bytes
/
Copy pathFirstTest.py
File metadata and controls
45 lines (30 loc) · 912 Bytes
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
def optionExecutor(userInput):
print(type(userInput))
try:
userInput = (int(userInput))
if (userInput):
print("is Numeric")
else:
print("In Correct Value")
return
except:
print("Value is not numeric")
if userInput==1:
print("Enter the numbers to add")
elif userInput==2:
print("Enter the numbers to subtract")
elif userInput == 6 :
print("Exiting")
exit()
def clearTerminal():
print("\n\n\n\n\n\\n\n\n\n*******************************************")
while True:
print("Please Select one of the follwing options")
print("1. Add numbers")
print("2. Subtract numbers")
print("3. Multiply numbers")
print("4. Divide numbers")
print("5. Modulo numbers")
print("6. Modulo numbers")
userInput = input();
optionExecutor(userInput)