selectfield flask wtf

HOUR_CHOICES = [('1', '8am'), ('2', '10am')]

class TestForm(Form):
     hour = SelectField(u'Hour', choices=HOUR_CHOICES)

Here is what the above code is Doing:
1. We’re creating a new class called TestForm.
2. We’re creating a new SelectField called hour.
3. We’re setting the choices for the hour field to the HOUR_CHOICES variable.
4. We’re creating a new instance of the TestForm class.
5. We’re printing the HTML for the hour field.