Free Python Workshop Recording

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Hello,
How would I implement a node count in this code:
def

fringe = [Node(problem.initial)] # Stack
while fringe:
node = fringe.pop()
if

print("succes!")
print("solution: {}".format(node.solution()))
return node


print("unfortunately no solution has been found!")
return None

priyankvenkatesh