Last active
January 29, 2020 11:05
-
-
Save jakariyaa/3d6900622b04ee12c85cbda8bad6b209 to your computer and use it in GitHub Desktop.
Hello there! It's a Simple Calculator made with PYTHON by me.This project is Open Source. You can modify or use this PYTHON Calculator without any permission. Thank You! <3 <3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple Calculator made with Python 3x | |
# This Calculator is Developed by Zakariya Abbas. | |
# This project is open source so anyone can modify and use without any permission. | |
print("Simple PYTHON Calculator \n" | |
"Version : 1.0.0 Build 10 \n" | |
"~~-~~~~~~<<<>>>~~~~~~-~~") | |
print("Calculator Started \n" | |
" /--o--\ ") | |
sum1s = input("Input the first value : ") | |
sum1 = float(sum1s) | |
sum2s = input("Input the second value : ") | |
sum2 = float(sum2s) | |
print(" \n " | |
"__________________" | |
" \n ") | |
print("Choose the type of math : ") | |
print("1: Addition (plus or +) \n" | |
"2: Subtraction (minus or -) \n" | |
"3: Multiplication (× or *) \n" | |
"4: Division (÷ or /) \n") | |
sumvs = input("Please type the number only : ") | |
sumv = int(sumvs) | |
print("Result : ") | |
if sumv == 1: | |
print(sum1 + sum2) | |
elif sumv == 2: | |
print(sum1 - sum2) | |
elif sumv == 3: | |
print(sum1 * sum2) | |
elif sumv == 4: | |
print(sum1 / sum2) | |
elif sumv != 1 or 2 or 3 or 4: | |
print("Error:0x07 **Choose the type of math carefully!") | |
else: | |
print("Calculator faced an unexpected ERROR. \n" | |
"Will improve it more in the near future.") | |
print(" ~~~~~~~~~~~~~~~~~~~~~~ \n" | |
"Thank You for using my PYTHON Calculator! \n" | |
"This Calculator is Developed by Zakariya Abbas.") | |
# Visit "http://bit.ly/SPCupdates" for latest updates. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment