Strings Methods & String Manipulation

Fill in the blanks

in Python provide various functions for . One fundamental operation is , which allows merging two or more strings together. The function enables extracting a portion of a string based on a specified range. To obtain the of a string, we can use the len() function, which returns the number of characters present.

is another crucial aspect of string handling, allowing us to access a specific character within a string using its position. Additionally, methods such as upper() and lower() can change the case of a string to either uppercase or lowercase accordingly.

is a useful method that helps substitute a specific substring with another value within a given string. is the process of dividing a string into multiple substrings based on a separator. It allows us to separate the string into parts and store them in a list.

involves removing any leading or trailing whitespace characters from a string. Whitespace can be spaces, tabs, or line breaks. This operation is commonly used to clean up user input or remove unnecessary spaces from strings.

Keywords

indexing | case conversion | length | strings methods | splitting | string manipulation | substring | concatenation | trimming | replacing |