How to make calculator in python

Опубликовано: 09 Август 2026
на канале: Tiger coder
256
12

This video is make to calculator in python language

see this first my videos -    • This video is just example of pygame | python  

source code of calculator:

calculator

print("Enter the first number")
a =int(input("enter: "))

print("enter your choice +,-,*,/")
b=input("enter your choice: ")

print("Enter the second number")
c=int(input("enter: "))

if b=="+":
print("ans:",a+c)
elif b=="-":
print("ans:",a-c)
elif b=="/":
print("ans:",a/c)
elif b=="*":
print("ans:",a*c)
else :
print("Sorry , please try again")