Python Tutorial

Tuesday, August 17, 2010

python String lower/upper conversion

'''
    This code is use for lower to upper/upper to lower conversion
'''
data="Life is VERY EASY with Python"
print data
data=data.lower()
print data
data=data.upper()
print data



Output:
Life is VERY EASY with Python
life is very easy with python
LIFE IS VERY EASY WITH PYTHON

0 comments:

Post a Comment