title: how do i calculate the average number in a list of number
body: <p>everything is working except for the last few lines, where i get a typeerror. not sure what datatype needs altering. any ideas? the program is simply rolling two dice and calculating the average number out of 100 rolls.    </p>
  
  <pre><code>#two dice roll with average of rolls
  import random
  
  total=[]
  
  def roll():
      for i in range(100):
          roll_d=random.randint(1,6), random.randint(1,6) 
          total.append(roll_d)
          print(roll_d)
  
  def main():
  
      roll()
  
      s=sum(total)
      average=s/100.0
      print(average)
  
  main()
  </code></pre>