Problem in Generate parenthesis

i am executing the same code as mentioned in the Generate Parenthesis…But when I execute …it asked for the input…When I iput like 2…it generate an error like
‘int’ object has no attribute ‘append’

Please resolve it as i am not understanding the error

Hi @Rashmi007

Can you please copy your code at cb.lk/ide and share the link.

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.