#NEWLINE# def validate( self ) : #NEWLINE# #INDENT# nums = self . numbers . data . split ( ) #NEWLINE# valid = True #NEWLINE# errors = [ ] #NEWLINE# for num in valid : #NEWLINE# #INDENT# if ( not num . isdigit ( ) ) : #NEWLINE# #INDENT# valid = False #NEWLINE# errors . append ( 'One of the items is not a number' ) #NEWLINE# #UNINDENT# #UNINDENT# if ( len ( nums ) != 3 ) : #NEWLINE# #INDENT# valid = False #NEWLINE# errors . append ( 'You may submit exactly three numbers.' ) #NEWLINE# #UNINDENT# self . numbers . errors = tuple ( errors ) #NEWLINE# return valid