invalid syntax non specific error

52 views Asked by At
def rotate():
listparam = [[1, 1, 1], [1, 2, 3], [1, 2, 4], [1, 5, 6]]
listlength = len(listparam)
elementlength = len(listparam[0])
print(listlength)
print(elementlength)
i = 0
j = 0
for i in range(elementlength):
    row[i] = []
    for j in range(listlength):
        row[i].append(listparam[i][j]

I get an invalid syntax error on a blank line Here's a pic of what im seeing.

https://i.stack.imgur.com/9jj3f.png

1

There are 1 answers

0
Kevin On
    row[i].append(listparam[i][j]

You're missing a parenthesis on the last line.

    row[i].append(listparam[i][j])