I am getting this error when I run my program and I have no idea why. The error is occurring on the line that says \"if 1 not in c:\"
Code:
matrix =
I think you want if 1 != c: - that tests if c doesn't have the value 1.
if 1 != c:
c
1