Skip to content

Instantly share code, notes, and snippets.

@mastro35
Created April 16, 2018 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mastro35/00b00f646248ac2cacb59ffc4d600071 to your computer and use it in GitHub Desktop.
Save mastro35/00b00f646248ac2cacb59ffc4d600071 to your computer and use it in GitHub Desktop.
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