title: Trying to sum up nested lists but receive error TypeError: unsupported operand type(s) for +: 'int' and 'list'
body: <p>Im using python 3 to create a list of random dice rolls and add them up, however when i try to add all the totals it gives me TypeError: unsupported operand type(s) for +: 'int' and 'list. What to do?</p>
  
  <pre><code>count = 0
  lista=[[] for q in range(5)]
  while count&lt;len(lista):
      import random
      c=random.randrange(1,7,1)
      lista[count].append(c)
      count += 1
  
  print(lista)
  total=sum(lista)
  </code></pre>