Many programmers, regardless of their specialty, deal with text on a daily basis. For example, web developers work with text input from web forms. Data scientists process text to extract data and perform tasks like sentiment analysis, which can help identify and classify opinions in a body of text.
Collections of text in Python are called strings. Special functions called string methods are used to manipulate strings. There are string methods for changing a string from lowercase to uppercase, removing whitespace from the beginning or end of a string, replacing parts of a string with different text, and much more.
In this video course, you’ll learn how to:
- Manipulate strings with string methods
- Work with user input
- Deal with strings of numbers
- Format strings for printing
This video course is part of the Python Basics series, which accompanies Python Basics: A Practical Introduction to Python 3. You can also check out the other Python Basics courses.
Take the Quiz: Test your knowledge with our interactive “Python Basics: Strings and String Methods” quiz. Upon completion you will receive a score so you can track your learning progress over time: