Sitemap
Kurmi ravi Kurmi

Kurmi ravi Kurmi

STRINGS METHODS

4 min readNov 15, 2026
  1. lower method is tring method which is used to convert all upper case characters to lower case & other characters are ignored
    example
Press enter or click to view image in full size

2. upper method is also a string method it is used to convert all lower case characters to upper case characters and rest of the characters are ignored.

Press enter or click to view image in full size

3.swap case method are used to convert from upper to lower case and lower to upper case & rest of the characters are ignored

4.capitalize method : it is used to convert the first character or element into upper case & rest of the characters into lower case.

5. title method is used to convert first character of a word inside a string into upper case & rest of the words into lower case , remaining characters will be ignored

6. count method it is used to count a specific character is occured left to right in a string & how many times

7. index method is used to give the index value of a sub-string ,which is occuring in the first place of occurance python left to right.

8. Find method is used to give the find value of a sub-string ,which is occuring in the first place of occurance python left to right. both find and index value have the same feature were index gives you en error & find give -1

9. strip method by using which we can remove the characters of sub-string from starting & ending is called strip .we have 2 types characters called Rstrip & Lstrip, Rstrip

10. R-STRIP

11. L-strip

12. SPLIT method by using this method we can split or divide entire string into substring

13. maxsplit method by using this method we can maxsplit string number of times

14. replace method by using this we can replace any character or sequence character inside strings & it will create new string

15. checking is the method which is used to apply on strings action ,string integer and it will check either the string value is TRUE OR FALSE

Get Kurmi ravi Kurmi’s stories in your inbox

Join Medium for free to get updates from this writer.

16. isupper () this method is used to check all the characters in string are upper case or not and based on that it will give you a result True or False

17. islower () this is the method is used to check all the characters in string are in lower case & based on that it will give you a result True or false

18.istitle is a method which will check the words inside a string and it will give the character

19.isdigit is the method to check all the character are numeric inside strings

20.isalpha is the method to check all characters inside a string is alphabet a to z or A TO Z.

21.isal-num is a method to use all alphabet or numbers present inside a string

--

--