text: On receiving ' T ' or ' t ' goto first state ( 1 ) else goto starting state ( 0 )
code: if ( c == ' t ' or c == ' T ' ) : NEW_LINE INDENT dfa = 1 NEW_LINE DEDENT else : NEW_LINE INDENT dfa = 0 NEW_LINE DEDENT def isAccepted ( string ) : NEW_LINE