Created
December 23, 2017 04:34
-
-
Save xuyuji9000/948c48ee91bfb2d5fb61bc4d07b50393 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def coroutine(text): | |
while True: | |
input_search = (yield) | |
if input_search in text: | |
print 'contained' | |
else: | |
print('no') |
Author
xuyuji9000
commented
Dec 23, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment