Created
February 22, 2009 21:00
-
-
Save jroo/68615 to your computer and use it in GitHub Desktop.
returns number of Congress in session for provided year
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
#returns number of Congress in session for provided year | |
def congress_from_year(year): | |
if year < 1789: | |
return None | |
else: | |
return int((year-1789)/2) + 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment