编写一个简单的计算器程序，能够处理两个数字的加法或乘法。


add 4 and 6
Sure, here's a simple Python code for a calculator that can handle addition and multiplication of two numbers:

```
operation, num1, num2 = input().split()   # Takes input as "add 4 6" or "mult 4 6"
num1, num2 = int(num1), int(num2)   # Converts numbers from string to integer

if operation == "add":
    result = num1 + num2
elif operation == "mult":
    result = num1 * num2
else:
    result = "Invalid operation"

print(result)
```

To use it, input "add 4 6" (without quotes) into the program and hit enter. It will output "10" as a result. To perform multiplication, input "mult 4 6". The output will be "24".