Computer Science, asked by sharmaajju108, 5 months ago

3
Ques 13. Consider the following code:
               String= input(“Enter a string:”)
                Count=3
               While True:
               If String[0]== ‘a’:
                        String=string[2:]
                elif String[-1]== ‘b’:
                        String= string [:2]
                     else:
                        Count +=1
                        Break
                  print(string)
                 print(count)
           
         What will be the output produced if the input is:
                        (i)aabbcc                                 (ii)aaccbb                                (iii)abcc?​

Answers

Answered by bkhushnuma80
1

Answer:

I hope this helps you

Attachments:
Similar questions