Iterview question sample 1

string="Sample"

j=""

for i in range(len(string)):

    j+=string[5-i]

    new=string.strip(j)

    print(new)


Comments

Popular posts from this blog

Guess game!

Path for chromedriver