Driver code
S = " ABCABD " NEW_LINE Str = [ i for i in S ] NEW_LINE if ( check ( Str ) ) : NEW_LINE INDENT print ( " Repeated ▁ Subsequence ▁ Exists " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " Repeated ▁ Subsequence ▁ Doesn ' t ▁ Exists " ) NEW_LINE DEDENT