I want to prompt the user to enter 2 numbers into a list of ints, add the 2 numbers and append the result to the list, and finally subtract the 2 numbers and append the result to the list. This was an assignment given to us while learning C. I'm trying to learn Python myself using the same assignments. My code won't append the results of the equations to the array. The error says list indices should be integers not tuples. Here's my code:

```
numarray=[]

num1 = int(raw_input("Enter the first number: "))
num2 = int(raw_input("Enter the second number: "))
num3 = num1+num2
num4 = num1-num2

print numarray[num1,num2,num3,num4]

```