Error in test cases

Why is my code giving error in test cases?

hello @kunal81198 i have corrected your code and commented the error.


if you feel your doubt is cleared please mark this doubt as resolved.
Happy Learning!!

Only the initialization part was wrong?

yes that was the only error in your code .
if you feel your doubt is cleared please mark this doubt as cleared .
Happy Learning !!

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.