Created
November 9, 2016 22:28
-
-
Save d5h/f8b536f41182d87cdaebaa9940173434 to your computer and use it in GitHub Desktop.
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
def generate_trips(route_names, start_hour, end_hour): | |
results = [] | |
for route_name in route_names: | |
for hour in range(start_hour, end_hour): | |
results.append((route_name, hour)) | |
return results |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment