I am trying to make my first program in Python, however, I am having a problem.
Why is op1
not being assigned the value I input?
print ("Hello user")
num1 = int(input("Choose a number: "))
num2 = int(input("Choose another number: "))
op1 = (input("Choose an operation [add, multiply, minus, divide]: "))
print (op1)
No matter what I enter into op1
I always receive this message from print (op1)
:
<function add at 0x10cff1938>