Skip to content

Instantly share code, notes, and snippets.

@tomvon
Created June 8, 2014 22:51

Revisions

  1. tomvon created this gist Jun 8, 2014.
    5 changes: 5 additions & 0 deletions generate-year-select-menu.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #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>'