#NEWLINE# def __init__( self , min = 1 , max = 4 ) : #NEWLINE# #INDENT# if ( min == max ) : #NEWLINE# #INDENT# self . _question = '' #NEWLINE# self . missing = min #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . missing = random . randint ( min , max ) #NEWLINE# numbers = range ( ( min - 1 ) , ( max + 2 ) ) #NEWLINE# if ( len ( numbers ) > 0 ) : #NEWLINE# #INDENT# numbers . remove ( self . missing ) #NEWLINE# numbers = map ( ( lambda x : str ( x ) ) , numbers ) #NEWLINE# self . _question = ' ' . join ( numbers ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _question = ''