Strings and Character Data in Python - Real Python
Strings and Character Data in Python
Christopher Bailey 23 Lessons 2h 20m basics pythonIn 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 DataThis 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 NowString Manipulation
8 Lessons 40m
- 1. Strings and Character Data in Python: Overview 03:50
- 2. String Operators 05:21
- 3. Built-In String Functions 05:25
- 4. String Indexing 03:24
- 5. String Slicing 08:34
- 6. Interpolating Variables Into a String 03:37
- 7. Modifying Strings 01:59
- 8. Exercise: Check if a Word Is a Palindrome 08:00
Built-In String Methods
7 Lessons 58m
- 1. Built-In String Methods: Overview 02:06
- 2. Case Conversion 04:35
- 3. Find and Seek 09:12
- 4. Character Classification 11:37
- 5. String Formatting Methods 10:50
- 6. Converting Between Strings and Lists 11:52
- 7. Exercise: Normalize a Username 08:00
bytes Objects
8 Lessons 41m
- 1. bytes Objects: Overview 01:04
- 2. Defining a Literal bytes Object 03:37
- 3. Defining bytes Objects With bytes() 05:55
- 4. Operations on bytes Objects 08:08
- 5. bytearray Objects 03:19
- 6. Exercise: Get Hex Representation of a String 08:00
- 7. Strings and Character Data in Python (Quiz) 07:30
- 8. Strings and Character Data in Python: Conclusion 04:16
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 ChristopherEach 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
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.