On 12 Jun 2013 12:08, "Νικόλαος Κούρας" <supp...@superhost.gr> wrote: > > Oh my God! > > i just need to do this: > > > for i, month in enumerate( months ): > print('<option value="%s"> %s </option>' % (month, month) )
Usually what goes in <option value="..."> is an ID of something. You should keep using (i, month) and then do months[id] to get the month string. Also, tuples aren't traditionally used for this. Normally you'd use a list.
-- http://mail.python.org/mailman/listinfo/python-list