Wednesday, 14 August 2013

Create a select list in half-hour increments in python

Create a select list in half-hour increments in python

I am trying to create a <select> with <option> that creates a list with
all of the times of the day in half hour increments. I tried using xrange
and cycle to create a list with repeated numbers. I just can't get it. Of
course I could manually write it out but what fun is that?

No comments:

Post a Comment