Eight Puzzle Problem In Python Mean