Hi im trying to add some dictionary values together and I can seem to get the context right or im doing this wrong. Would anyone mind looking to see if im doing this right as I keep doing something wrong and keep getting errors

```
import bge
from bge import logic
def add(cont):
own = cont.owner
if not 'init' in own:
own["init"] = 1
logic.test = {"testnumber": [1, 1, 1, 1, 1, 1]}
for i in range(6):
total = sum(logic.test["testnumber"][i])
print(total)
```

I want it to add the numbers together but I can seem to get it.

Thanks in advance