Created
January 4, 2017 15:50
-
-
Save ddahan/a002a0ef24dd0e26be7b636b50398fa3 to your computer and use it in GitHub Desktop.
This file contains 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
def page_to_index(page_num): | |
''' Transforms page number into start index to be written in Yelp URL ''' | |
return (page_num - 1)*10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment