I need to write a program that uses the following function

def pascnext( L ):
    currentrow = []
    if len( L ) == 0:
        return [1]
    if len( L ) == 1 and L[ 0 ] == 1:
        return [ 1, 1 ]
    else:
        currentrow += [ 1 ]
        for i in range( 0, len( L ) - 1 ):
            currentrow += [ L[ i ] + L[ i + 1 ] ]
        currentrow += [ 1 ]
        return currentrow

I need to write another function pascrow(n) where n is a row number in the triangle and returns what that row is in a list. I need pascrow(n) to use the pascnext function though to find it. Any suggestions or help is appreciated!

Read the last post of masterofpuppets to your other thread (http://www.daniweb.com/forums/thread235765.html) and you'll nearly have the answer...
Put his code in a function (pascrow), change the for loop condition and the print statement and you've got it