Python Parenthesis Problem Output Doubt

I want to know the output for n=3.
My output is
((()))
(()())
(())()
()(())
()()()