Reversing a string in Python

 

name = "abdur"
print(name[::-1])

Result:
rudba





Comments

Popular posts from this blog

Quotation marks to wrap an element in HTML

The "content" property in CSS

Guess The Number Game - You vs. Your Friend