Python Tutorials · Python Strings
Modify Strings
Learn all about Modify Strings in this comprehensive tutorial.
5 min read beginner
- •Python has a set of built-in methods that you can use on strings.
- •Whitespace is the space before and/or after the actual text, and very often you want to remove this space.
- •The split() method returns a list where the text between the specified separator becomes the list items.
- •Learn more about String Methods with our String Methods Reference
Introduction
Python has a set of built-in methods that you can use on strings.
Upper Case
python
Lower Case
python
Remove Whitespace
Whitespace is the space before and/or after the actual text, and very often you want to remove this space.
python
Replace String
python
Split String
The split() method returns a list where the text between the specified separator becomes the list items.
python
Learn more about Lists in our Python Lists chapter.
String Methods
Learn more about String Methods with our String Methods Reference
Module quiz
2 questions1
Which of the following is true about Modify Strings?
2
What is the most common pitfall when working with Modify Strings?
Answer all questions to submit.