Update 01_breadth-first_search.py (#75)
change line 24 to make more pythonic style
This commit is contained in:
committed by
Aditya Bhargava
parent
b190829dfb
commit
d13ab114f8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user