Skip to content

Instantly share code, notes, and snippets.

@jroo
Created February 22, 2009 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jroo/68615 to your computer and use it in GitHub Desktop.
Save jroo/68615 to your computer and use it in GitHub Desktop.
returns number of Congress in session for provided year
#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