Python function returns None, unclear why [duplicate]

I didn’t study your code, but I’d say that it’s for this line:

return lst.append([1,1])

list.append() always returns None.

So lst.append([1,1]) will append [1,1] to lst and return None.

Leave a Comment