If both lists are not empty , then data of current nodes must match , and same should be recursively true for rest of the nodes .
if ( a != None and b != None ) : NEW_LINE INDENT return ( ( a . data == b . data ) and areIdentical ( a . next , b . next ) ) NEW_LINE DEDENT