Created
September 18, 2013 09:27
-
-
Save mediaczar/6606734 to your computer and use it in GitHub Desktop.
I'm confused by a bit of Python iteration; it looks extremely terse & useful, but I can't see what's happening.
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
| #!/usr/bin/env python | |
| from instagram.client import InstagramAPI | |
| access_token = '[this space intentionally left blank]' | |
| api = InstagramAPI(access_token=access_token) | |
| recent_media, next = api.user_recent_media() # What's happening here? I don't understand syntax |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python probably returns a pair [element, remainder of the list]. You split it in two variables with this assignment.