Python Tutorial

Tuesday, August 17, 2010

python String replace, replcerange

'''
    This code is use for string replace
'''
data="Life is very hard with Python"
print data
data=data.replace("hard","easy")
print data



Output:
Life is very hard with Python
Life is very easy with Python

0 comments:

Post a Comment