Strings and Character Data in Python

Christopher Bailey
Christopher Bailey 19 Lessons 1h 48m basics 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.

Take the Quiz: Test your knowledge with our interactive “Python Strings and Character Data” quiz. You’ll receive a score upon completion to help you track your learning progress:


Interactive Quiz

Python Strings and Character Data

This quiz will test your understanding of Python's string data type and your knowledge about manipulating textual data with string objects. You'll cover the basics of creating strings using literals and the str() function, applying string methods, using operators and built-in functions, and more!

What’s Included:

Downloadable Resources:

Related Learning Paths:

About 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

Avatar image for Ponzhi

Ponzhi on Jan. 18, 2022

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

Avatar image for Cory

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