← Winnitude! Search  ·  Reader Mode (433 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
REAL PYTHON · Real Python · 49 LINKS

Strings and Character Data in Python - Real Python

Go to the next lesson

Strings and Character Data in Python

Christopher Bailey 23 Lessons 2h 20m 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:

  • 23 Lessons
  • Video Subtitles and Full Transcripts
  • Translated Subtitles in 8 Languages
  • 1 Downloadable Resource
  • Accompanying Text-Based Tutorial
  • Interactive Quiz to Check Your Progress
  • 3 Hands-On Coding Exercises
  • Q&A With Python Experts: Ask a Question
  • Certificate of Completion

Downloadable Resources:

Related Learning Paths:

Start Now

String Manipulation

8 Lessons 40m

  1. 1. Strings and Character Data in Python: Overview 03:50
  2. 2. String Operators 05:21
  3. 3. Built-In String Functions 05:25
  4. 4. String Indexing 03:24
  5. 5. String Slicing 08:34
  6. 6. Interpolating Variables Into a String 03:37
  7. 7. Modifying Strings 01:59
  8. 8. Exercise: Check if a Word Is a Palindrome 08:00

Built-In String Methods

7 Lessons 58m

  1. 1. Built-In String Methods: Overview 02:06
  2. 2. Case Conversion 04:35
  3. 3. Find and Seek 09:12
  4. 4. Character Classification 11:37
  5. 5. String Formatting Methods 10:50
  6. 6. Converting Between Strings and Lists 11:52
  7. 7. Exercise: Normalize a Username 08:00

bytes Objects

8 Lessons 41m

  1. 1. bytes Objects: Overview 01:04
  2. 2. Defining a Literal bytes Object 03:37
  3. 3. Defining bytes Objects With bytes() 05:55
  4. 4. Operations on bytes Objects 08:08
  5. 5. bytearray Objects 03:19
  6. 6. Exercise: Get Hex Representation of a String 08:00
  7. 7. Strings and Character Data in Python (Quiz) 07:30
  8. 8. Strings and Character Data in Python: Conclusion 04:16
Start Now

About Christopher Bailey

Christopher Bailey is the creator and host of the Real Python podcast. He is a programmer and data analyst, working in banking, marketing and environmental science. Christopher 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:

Dan

Joanna

Sadie

Tappan

Leodanis

John

Geir Arne

Aldren

Bartosz

Philipp

Brenda

Related Courses:

Check if a Python String Contains a Substring

Programming Sockets in Python

Python Basics: Code Your First Python Program

Ponzhi

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

Cory

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