Skip to content

Instantly share code, notes, and snippets.

@dkhmelenko
Last active February 13, 2021 10:57
Show Gist options
  • Save dkhmelenko/3b649dd801d90eabae8828395b36b971 to your computer and use it in GitHub Desktop.
Save dkhmelenko/3b649dd801d90eabae8828395b36b971 to your computer and use it in GitHub Desktop.
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