Update 01_breadth-first_search.py (#75)

change line 24 to make more pythonic style
This commit is contained in:
chenyang929
2018-05-16 02:54:59 +08:00
committed by Aditya Bhargava
parent b190829dfb
commit d13ab114f8

View File

@@ -21,7 +21,7 @@ def search(name):
while search_queue:
person = search_queue.popleft()
# Only search this person if you haven't already searched them.
if not person in searched:
if person not in searched:
if person_is_seller(person):
print person + " is a mango seller!"
return True