编写一个程序将两个数字相加。


num1 = 8, num2 = 4
Certainly! Here's a Python program that adds the two numbers:

```python
num1 = 8
num2 = 4

sum = num1 + num2

print("The sum of", num1, "and", num2, "is", sum)
```

When you run this program, the output will be:

```
The sum of 8 and 4 is 12
```