What's the error
Please help me out here
hello @pranjuldwivedi120568
a) u havent handle the else part of this statement

if s[i]!=s[i+1] then simply print s[i] and 1.
b) use break statement to break out of the loop, here in this else part->

check ur updated code.
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.