The code is showing str to be undeclared.
Redundant Parenthesis
@srshubhi398 because you are using str outside the test cases loop but you have defined str inside it
I defined it as you told me,outside the test case loop.Still the compilation failed.
Thankyou.But I was not able to understand my mistake.
@srshubhi398 you were just inputting the string n times and calling the function outside so theres no logic in it
1 Like
Thankyou so much,I understood.
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.