Created
July 27, 2018 22:31
-
-
Save alairock/e4ca9e5537483656034580c6d0121449 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 make_sandwich(): | |
customer = yield 'No Customer' | |
print(customer) | |
action = make_sandwich() | |
print(next(action)) | |
print(action.send(13)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment