Skip to content

Instantly share code, notes, and snippets.

@tomvon
Created June 8, 2014 22:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomvon/adb6089e8989367a684c to your computer and use it in GitHub Desktop.
Save tomvon/adb6089e8989367a684c to your computer and use it in GitHub Desktop.
Python script to generate year select menu.
#Python script to generate year select menu.
print '<select name="year">'
for i in range(2013,2051):
print '<option value="'+str(i)+'">'+str(i)+'</option>'
print '</select>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment