Strings and Character Data in Python

In this course, you’ll learn about working with strings, which are objects that contain sequences of character data. Processing character data is integral to programming. It is a rare application that doesn’t need to manipulate strings to at least some extent.

Python provides a rich set of operators, functions, and methods for working with strings. When you’re finished this course, you’ll know how to:

  • Use operators with strings
  • Access and extract portions of strings
  • Use built-in Python functions with characters and strings
  • Use methods to manipulate and modify string data

You’ll also be introduced to two other Python objects used to represent raw byte data: the bytes and bytearray types.

What’s Included:

Downloadable Resources:

Related Learning Paths:

About Christopher Bailey

Christopher Bailey Christopher Bailey

Chris is an avid Pythonista and creates video tutorials for Real Python. He is a programmer and data analyst. He creates music under the name Tripnet. Chris lives in Colorado with his wife and two dogs.

» More about Christopher

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

Participant Comments

Ponzhi on Jan. 18, 2022

Seriously, this video course is nice and easy to learn. Thanks.

Cory on April 25, 2020

I can’t lie when I started this course I thought to myself “this is going to be so boring”. After just a few lessons in I finally realized how important and how useful this tutorial is. Thank you for the multiple examples and clear explanations.

« Browse All Courses