Skip to content

Commit d13ab11

Browse files
chenyang929egonSchiele
authored andcommitted
Update 01_breadth-first_search.py (egonSchiele#75)
change line 24 to make more pythonic style
1 parent b190829 commit d13ab11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

06_breadth-first_search/python/01_breadth-first_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def search(name):
2121
while search_queue:
2222
person = search_queue.popleft()
2323
# Only search this person if you haven't already searched them.
24-
if not person in searched:
24+
if person not in searched:
2525
if person_is_seller(person):
2626
print person + " is a mango seller!"
2727
return True

0 commit comments

Comments
 (0)