Skip to content

Instantly share code, notes, and snippets.

@JoMingyu
Created April 5, 2018 10:09
def finder(str_for_find):
while True:
s = (yield)
if str_for_find in s:
print('Found : {} in {}'.format(str_for_find, s))
f = finder('coroutine')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment