I've a local variable that's not used in a function. This function does a matrix and returns that matrix empty.
I've tried to use 'i' variable using an "if i is None: pass" but the issue continue.
def create_matrix(rows, columns):
matrix = [[None] * columns for i in range(rows)]
return matrix
i want to dismiss this issue. Is there any way to do it? I know it's a stupid problem but i'm a little bit obsessed with have my code fully clean.