Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

lower method in python

# string object has the method .lower()
greet = 'Hello Bob'
zap = greet.lower()
print(zap)                  # Output: hello bob
# Remember this doesn't change the original string
# It only gives us a copy
print(greet)                # Output: Hello Bob
print('Hi there'.lower())   # Output: hi there
Source by www.py4e.com #
 
PREVIOUS NEXT
Tagged: #method #python
ADD COMMENT
Topic
Name
1+3 =