Calculator
A simple calculator for simple people. Without a calculator, i don't know what i would do in math. Probably fail...
@Bookie0 Thanks for the feedback!
@ProCode1227 it’s a pleasure
@Bookie0 Just saying, ProCode1227 didn't do good work. It is completely plagiarized from https://www.programiz.com/python-programming/examples/calculator, and it doesn't even mention something about the website.
I made my own calculator a while ago and this one has solve for x. Unfortunately it doesn't actually print the equation that you put in because I'm too lazy. Anyway the link to my calculator is https://repl.it/@3465728974563/Calculator if you want to use it. The solve for x took way too long and was a pain to make and I'm still trying to find anything I can add or improve to it.
Divide -> 0 -> need an error message ;)
Delete lines 37-50, they're copies of the other lines
@AlexRamirez2 ight. Can you get on The adventure thing we were doing pls. i need help
You duplicated part of your code while updating O.o
@AlexRamirez2 I am doing some code, called adventure game. Would you want to help? I see your good at python!
@ProCode1227 Sure! I'm actually working on a zombie game right now.
@AlexRamirez2 Cool! We can help each other!
@ProCode1227 Just invite me and I'll get on soon.
Division by zero error, I reccomend putting a try function to prevent errors from appearing and messing up the script.
try: choice = input("Enter choice(1/2/3/4): ") num1 = float(input("Enter first number: ")) num2 = float(input("Enter second number: ")) if choice == '1': print(num1,"+",num2,"=", add(num1,num2)) elif choice == '2': print(num1,"-",num2,"=", subtract(num1,num2)) elif choice == '3': print(num1,"*",num2,"=", multiply(num1,num2)) elif choice == '4': print(num1,"/",num2,"=", divide(num1,num2)) else: print("Invalid input") except: print("An error occured!")
@AlexRamirez2 Wow, thanks! I will put that in right now!
@Alexramirez2 I think that i fixed it. Thanks again!
@AlexRamirez2 Okay!
This is an exact copy from this website https://www.programiz.com/python-programming/examples/calculator