Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

title() function in python

# title() title function capitalises the first letter of string and make other 
# letter lower case.
a=input('Enter a string :')
b=a.title()
print(b,': is the modified string')
# output:
'''
Enter a string :hII hOW aRE yOU
Hii How Are You : is the modified string
'''
 
PREVIOUS NEXT
Tagged: #function #python
ADD COMMENT
Topic
Name
7+5 =