and everyone else started to mess around with it and they got it to run but I cant figure out why it wont print anything. this is my first semester and I'm new to this.
def main():
numOne = int(input("What is your first number"))
numTwo = int(input("input your second number"))
operation = input("input your operator")
def performOperation(numOne, numTwo, operation):
if(operation == "+"):
result1 = int(numOne) + int(numTwo)
print(result1)
elif(operation == "-"):
result2 = int(numOne) - int(numTwo)
print(result2)
elif(operation == "*"):
result3 = int(numOne) * int(numTwo)
print(result3)
elif(operation == "/"):
result4 = int(numOne) / int(numTwo)
print(result4)
else:
print("YOU DID NOT PRINT A VALID OPERATION SYMBOL")
main()
def main():
numOne = int(input("What is your first number"))
numTwo = int(input("input your second number"))
operation = input("input your operator")
def performOperation(numOne, numTwo, operation):
if(operation == "+"):
result1 = int(numOne) + int(numTwo)
print(result1)
elif(operation == "-"):
result2 = int(numOne) - int(numTwo)
print(result2)
elif(operation == "*"):
result3 = int(numOne) * int(numTwo)
print(result3)
elif(operation == "/"):
result4 = int(numOne) / int(numTwo)
print(result4)
else:
print("YOU DID NOT PRINT A VALID OPERATION SYMBOL")
main()