What's the error in my code?

hey @tharun ,
you are not updating your variable s.
you are just adding another character to it , updating it.
so just change it to s+='(' in your code lines. It will work fine.

I hope this helps you :slightly_smiling_face:.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.