Reverse a string in Python

A method to reverse a string;


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

Comments

Popular posts from this blog

Quotation marks to wrap an element in HTML

Making GUI Calculator in Tkinter Python

Unlocking Web Design: A Guide to Mastering CSS Layout Modes