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 calculator" print "" n1 = int(input("first number:")) n2 = int(input("second number:")) add = (n1 + n2) subtract = (n1 - n2) multiply = (n1 * n2) divide = (n1 / n2) print("addition") print(add) print("subtract") print(subtract) print("multiplication") print(multiply) print("division") print(divide)
Calculator.py
( around 18 lines python code )
Published By:
BM4518
Published on
2023-01-12T13:01:03Z
Python Mini
- an
OYOclass
application,
own your own class today
.
Run
Result
×
Error message shows here