-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.py
More file actions
35 lines (27 loc) · 1.01 KB
/
Copy pathfunctions.py
File metadata and controls
35 lines (27 loc) · 1.01 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
def new_output():
Numbre1 = int(input('Number1 >>>> '))
Numbre2 = int(input('Number2 >>>> '))
operator = input("Enter your operator >>> ")
match operator:
case "+": return Numbre1 + Numbre2
case "-": return Numbre1 - Numbre2
case "*": return Numbre1 * Numbre2
case "/": return Numbre1 / Numbre2
def con(output):
newnum = int(input('New number >>>> '))
operator = input('Operator >>>> ')
match operator:
case "+": return output + newnum
case "-": return output - newnum
case "*": return output * newnum
case "/": return output / newnum
def history(arrey):
print(arrey)
select = int(input("Select your Number hint:(indext number) "))
newnum = int(input('New number >>> '))
operator = input('opreator >>> ')
match operator:
case "+": return arrey[select] + newnum
case "-": return arrey[select] - newnum
case "*": return arrey[select] * newnum
case "/": return arrey[select] / newnum