Skip to content

Instantly share code, notes, and snippets.

@mastro35 mastro35/generators_2_6.py Secret
Created Apr 16, 2018

Embed
What would you like to do?
def get_elements():
for i in range (0,10000):
yield("x"*10240)
characters_count = 0
my_elements=get_elements()
for i in my_elements:
characters_count = characters_count + len(i)
print(characters_count)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.