LLD - Design — Chess Game
What will be the output of this move validation snippet if the move is invalid?
def validate_move(piece, start, end):
if piece == 'pawn' and end[1] != start[1]:
return False
return True
print(validate_move('pawn', (1, 1), (2, 2)))