From 74433177beed613676b53cdf3a5833e7cd16792e Mon Sep 17 00:00:00 2001 From: whitehatshark <124326774+whitehatshark@users.noreply.github.com> Date: Fri, 4 Oct 2024 15:14:34 -0500 Subject: [PATCH] Fixing few minor errors in the python code --- p1_search/search.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p1_search/search.py b/p1_search/search.py index a592ba7..d23d6f0 100755 --- a/p1_search/search.py +++ b/p1_search/search.py @@ -70,9 +70,9 @@ def tinyMazeSearch(problem): def graphSearch(problem, frontier): - print "Start:", problem.getStartState() - print "Is the start a goal?", problem.isGoalState(problem.getStartState()) - print "Start's successors:", problem.getSuccessors(problem.getStartState()) + print("Start:"), problem.getStartState() + print("Is the start a goal?"), problem.isGoalState(problem.getStartState()) + print("Start's successors:"), problem.getSuccessors(problem.getStartState()) explored = [] frontier.push([(problem.getStartState(), "Stop" , 0)])