Buddy, 16 lines of code will do the same thing as these thousands of lines.
Here's a friendly suggestion of how you can modify it:
print("welcome to calculator")
num1 = int(input("enter yo first number: "))
sign = input("enter yo operation: +,-,* or /: ")
num2 = int(input("enter yo second num: "))
Buddy, 16 lines of code will do the same thing as these thousands of lines.
Here's a friendly suggestion of how you can modify it: print("welcome to calculator") num1 = int(input("enter yo first number: ")) sign = input("enter yo operation: +,-,* or /: ") num2 = int(input("enter yo second num: "))
if sign == "+": print(num1+num2)
if sign == "-": print(num1-num2)
if sign == "": print(num1num2)
if sign == "/": print(num1/num2)
Simple!