Explain any 7 String methods with an example in python ?
Answers
Answered by
0
Answer:
Explanation:
Python String casefold() : Converts first character to Capital Letter
Python String center() : converts to case folded strings
Python String count() : returns occurrences of substring in string
Python String encode() : returns encoded string of given string
Python String endswith() : Checks if String Ends with the Specified Suffix
Python String expandtabs() : Replaces Tab character With Spaces
Python String find() : Returns the index of first occurrence of substring
Similar questions