#NEWLINE# def time_choices( ) : #NEWLINE# #INDENT# 'Return digital time choices every half hour from 00:00 to 23:30.' #NEWLINE# hours = list ( range ( 0 , 24 ) ) #NEWLINE# times = [ ] #NEWLINE# for h in hours : #NEWLINE# #INDENT# hour = str ( h ) . zfill ( 2 ) #NEWLINE# times . append ( ( hour + ':00' ) ) #NEWLINE# times . append ( ( hour + ':30' ) ) #NEWLINE# #UNINDENT# return list ( zip ( times , times ) )