write a python program to reverse a string

 code:-

mystring=“Easycodingzone”
mystring=mystring[ : :-1]
print(mystring)


Output:-

enozgnidocysaE



Leave a Reply

Your email address will not be published.