Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Program to capitalize a string

text ="welcome to PYTHON Tutorial"

# capitalizes the first letter in string 
# and keeps the rest of the string in lowercase
captialized_text= text.capitalize()

print(captialized_text)
Source by www.w3basic.com #
 
PREVIOUS NEXT
Tagged: #Python #Program #capitalize #string
ADD COMMENT
Topic
Name
2+1 =