Python Tutorial

Wednesday, August 18, 2010

python String reverse

'''
   this code is use for reverse a string
'''
data="nohtyP htiw ysae yrev si efiL"
print data[::-1]



Output:
Life is very easy with Python

0 comments:

Post a Comment