Last active
August 1, 2020 11:23
-
-
Save altanner/6e6de83142cf576fa241c396a14a4a36 to your computer and use it in GitHub Desktop.
DaSciResCom_example
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
# hello, this is gist, where snippets of code can be shared | |
# without needing a full repository. | |
# here is an example of a gist :) | |
# chunks splits the screen_name list into manageable blocks: | |
def chunks(a_list, length_of_chunk): | |
# For item i in a range that is a length of a_list, | |
for i in range(0, len(a_list), length_of_chunk): | |
# Create an index range for a_list of length_of_chunk items | |
yield a_list[i:i+length_of_chunk] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment