-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFirst-Calc.py
More file actions
25 lines (23 loc) · 895 Bytes
/
Copy pathFirst-Calc.py
File metadata and controls
25 lines (23 loc) · 895 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
print("This is a calculator")
Type = input("Would you like '+', '-', '*', or '/'?")
if Type is "+":
print('You chose addition!')
first = input("Please type the first number")
second = input("Please type the second number")
print(int(first) + int(second))
if Type is "-":
print('You chose subtraction')
first = input("Please type the first number")
second = input("Please type the second number")
print(int(first) - int(second))
if Type is "*":
print('You chose multiplication')
first = input("Please type the first number")
second = input("Please type the second number")
print(int(first) * int(second))
if Type is "/":
print('You chose division')
first = input("Please type the first number")
second = input("Please type the second number")
print(int(first) / int(second))
'''Added functionality for all basic operations'''