Reverse a string in Python

A method to reverse a string;


    

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

    

Comments

Popular posts from this blog

Quotation marks to wrap an element in HTML

The `white-space` property in CSS

Windows Maintenance and Troubleshooting - Utilities and Commands