enter image description here enter image description here
This Problem has appeared in my code for making a chess engine. I don\'t have much knowledge regarding pytho