Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 499fa77

Browse files
committed
Change print statements to functions
1 parent a669248 commit 499fa77

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composite.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def addChild(self, name, force=False):
273273

274274
child = self.getChild(name)
275275
if child:
276-
# print 'Child %s present!' % name
276+
# print('Child %s present!' % name)
277277
# Replace it if force==True
278278
if force:
279279
index = self.getIndex(child)

graph_search.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ def find_shortest_path(self, start, end, path=[]):
7575
graph1 = GraphSearch(graph)
7676

7777

78-
print graph1.find_path('A', 'D')
79-
print graph1.find_all_path('A', 'D')
80-
print graph1.find_shortest_path('A', 'D')
78+
print(graph1.find_path('A', 'D'))
79+
print(graph1.find_all_path('A', 'D'))
80+
print(graph1.find_shortest_path('A', 'D'))

0 commit comments

Comments
 (0)