parameters: (self, numRows)
return_statement: return result
docstring: :type numRows: int
          :rtype: List[List[int]]
docstring_summary: :type numRows: int
          :rtype: List[List[int]]
docstring_tokens: : type numRows : int : rtype : List [ List [ int ]]
function: def generate(self, numRows):
          """
          :type numRows: int
          :rtype: List[List[int]]
          """
          result = [[1]*(i+1) for i in range(numRows)]
          for i in range(numRows):
              for j in range(1,i):
                  result[i][j] = result[i-1][j-1] + result[i-1][j]
          return result
function_tokens: def generate ( self , numRows ) : result = [ [ 1 ] * ( i + 1 ) for i in range ( numRows ) ] for i in range ( numRows ) : for j in range ( 1 , i ) : result [ i ] [ j ] = result [ i - 1 ] [ j - 1 ] + result [ i - 1 ] [ j ] return result