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.
You're missing a parenthesis on the last line.