title: Trying to get a diagonal sum
body: <p>Trying to get the sum diagonally in #7 of the lists that #6 creates. So say the list was this <code>[[2,3,1],[1,1,1],[5,6,4]]</code> the sum would be 2+1+4</p>
  
  <pre><code>#6
  
  def randomlists(s):
      b=s
      list1 = []
      while s&gt;0:
          sublist = []
          for x in range(0,b):
              sublist.append(randrange(-100,101))
          list1.append(sublist)
          s-=1
      return list1
  #print(randomlists(5))
  #7
  
  def diagonalsum(x):
      a=randomlists(x)
      count=0
      print (a)
      for b in a:
          while count&lt;x:
              d=a[0]
              b=a[1]
              c=a[2]
              print (a[(count)])
              count+=1
          return d+b+c
  print (diagonalsum(3))
  </code></pre>