I am very much interested in learning Machine Languages such as HTML and Python. In python, I start with a simple project creating a Mini-Calculator.
I use Online Python Compiler for creating and running Python related projects.
Here is the source code for my Mini-Calculator project.
print(“Enter only Whole Numbers”)
a=int (input(“Enter a Number:”))
print(“Press Enter to Continue”)
print(“The Operations are -,+,/,*”)
Operations=(input(“Enter an Operation:”))
print(“Press Enter to Continue”)
b=int (input(“Enter another Number:”))
print(“Press Enter to Continue”)
if (Operations==”-“):
print(a-b)
if (Operations==”+”):
print(a+b)
if (Operations==”/”):
print(a/b)
if (Operations==”*”):
print(a*b)
Copy and Paste the above code in the compiler and click run to enjoy my Mini-Calculator.
If you find any Mistakes or Suggestions please inform me in the Comments!!!
Discover more from Siddharth TJ
Subscribe to get the latest posts sent to your email.
Good one.. Way to Go !!