The answer will not print!!!

I have not tried anything since I am stuck

This program creates a simple calculator

This funtion adds two numbers

```
def add_numbers(x,y):
return x+y
```

This function subracts one number from another

```
def subtract_numbers(x,y):
return x-y
```

This function multiplies two numbers together

```
def multiply_numbers(x,y):
return x*y
```

This function divides one number by another

```
def divide_numbers(x,y):
return x/y
```

Take input from user

```
choice = int(input(" Enter 1 to add, 2 to subtract, 3 to multiply, 4 to divide. "))
num1 = int(input("What is your first number? "))
num2 = int(input("What is your second number? "))
if choice == '1':
print ("yah")
print ((num1) + "+" + (num2) + "=" + (add_numbers(num1,num2)))
elif choice == "2":
print ((num1) + "-" + (num2) + "=" + (subtract_numbers(num1,num2)))
elif choice == "3":
print ((num1) + "x" + (num2) + "=" + (multiply_numbers(num1,num2)))
elif choice == "4":
print ((num1) + "/" + (num2) + "=" + (divide_numbers(num1,num2)))
```

I want the answer to print but it will not

Few errors in your code

You are taking input as integer

`choice = int(input(...))`

but comparing to an string in`choice == '1'`

, choose one, I would suggest integer to integer comparisone.g.

`choice == 1`

You are trying to append integers and string, when you are trying to print e.g.

`((num1) + "/" + (num2)`

which won't work, I suggest using string formatting to print your output, str.format e.g.`print('{}+{}={}'.format(num1, num2, add_numbers(num1, num2)))`

So a sample fix of your code might look like

Output of your code now will look like

Also you can actually simplify a code a lot by using a

`dictionary`

, which will map your choice to a function and then call the function directly