Create a Calculator in Python Programming Language!

 Hello friends, In Today Blog I will Show You How you Can create a Calculator in Python Programming Language.
first You have a Python IDLE or any other editor writing the Program.
*You can Use "Thonny":- https://thonny.org
Now You Can Copy & Paste the Code:


name=(input("Enter Your Name: "))
print("Welcome",name)
a=int(input("Enter first number: "))
op=(input("Enter the operation: "))
b=int(input("Enter the second number: "))
if op=="add":
    print("Your result is",a+b)
if op=="sub":
    print("Your result is",a-b)
if op=="divide":
    print("Your result is",a/b)
if op=="multiply":
    print("Your result is",a*b)

----------------------------------------------------------------------------------------

For explanation: https://www.youtube.com/watch?v=I0mMOZGxyLM


Follow us on Instagram: https://www.instagram.com/technicalcreativity0




Comments