Reverse a string

string = "abcd"

out =""

for i in range(len(string)):

    out+= string[-i-1]

print(out)

Comments

Popular posts from this blog

Guess game!

Path for chromedriver