Last active
February 13, 2021 10:57
-
-
Save dkhmelenko/3b649dd801d90eabae8828395b36b971 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 read_characters(string): | |
for char in string: | |
print(f"Yield char {char}...") | |
yield char | |
content = read_characters(input_string) | |
print(content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment