Reverse a string in Python

A method to reverse a string;


    

   stri = "abdur"
revStr = stri[::-1]
print(revStr)

    

Comments

Popular posts from this blog

Using insertAdjacentHTML instead of innerHTML to avoid XSS attacks

Loading Windows in CLI mode

Various Types of Computer Architectures