Some important built-in string methods:
1.Capitalize():- Used to capitalize 1st letter of the string.
2.islower():- used to check whether the string contains lowercases.
3.isupper():- used to check whether the string contains uppercases.
4.lower():- used to converts the string into lowercase.
5.upper():- used to convert the string in uppercase.
6.swapcase():- used to convert the lowercase character to uppercase and uppercase to lowercase.
7.count():- used to count the occurrences of the character.
syntax: str.count(string,start=0,end=len(string)
8.isalpha() :- used to check whether the string consists of alphabets.
9.isalnum():- used to check whether consist of alphanumeric character.
10.isdigit():- used to check whether the string consist of digits.
11.isspace():- used to check whether string consist of white space characters.
12.find():- used to return the index of the string where the substring is found.
syntax: str.find(string,start=0,end=len(string)
13.split():- used to splits all the words in a string separated by a specified elements.
14.min():- returns the min alphabet character from the string.
15.max():- returns the max alphabet character from the string.
16.replace():- used to replace a specified string to another specified string.
Thanks for Watching.
Pls do : Like | Share | Subscribe
Watch video String Methods in Python | JaggyTech online without registration, duration hours minute second in high quality. This video was added by user JaggyTech 25 May 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2 once and liked it people.