Text Size
Text Size
Exit Full Screen
Python Mini
Show
Source Code
View Source Code in Full Screen
Open in New Tab
import time time.sleep (1) print "Welcome to my custom calculator" print "" n1 = int(input("1st number:")) n2 = int(input("2nd number:")) add = (n1 + n2) sub = (n1 - n2) mult = (n1 * n2) division = (n1/n2) print("addition:") print(add) print("subtraction:") print(sub) print("multiplication:") print(mult) print("division:") print(division)
calculator.py
( around 18 lines python code )
Published By:
Valencia868
Published on
2023-01-09T17:38:16Z
Python Mini
- an
OYOclass
application,
own your own class today
.
Run
Result
×
Error message shows here