-
-
Save IndhumathyChelliah/81895342b5ba10f27a4dc20ac0c5e9c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#capitalize-Only first character of string is capitalized | |
s1="example of string methods" | |
print (s1.capitalize()) #Output:Example of string methods | |
s2="EXAMPLE OF STRING METHODS" | |
print (s2.capitalize())#Output:Example of string methods |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment