Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT input = [ " zebra " , " dog " , " duck " , " dove " ] NEW_LINE output = uniquePrefix ( input ) NEW_LINE print ( " The ▁ shortest ▁ unique ▁ prefixes ▁ " + " in ▁ sorted ▁ order ▁ are ▁ : ▁ " ) NEW_LINE for i in output : NEW_LINE INDENT print ( i , end = " ▁ " ) NEW_LINE DEDENT DEDENT