Help me in solving PYSTRARR1 problem 😊

My issue

i didn’t understand this line = while i < (len(u)-1):

Learning course: Strings using Python
Problem Link: Rearrange Code Practice Problem in - CodeChef

@kushcoder14
the loop is running till the size of string -1 because inside the loop he is checking for i+1 , so to avoid the run time error the loop is running till string size -1.

:blush:ok thanks bro :hushed: :cry: