Login
📚 Introduction to Python Programming
Chapters ▾

Chapter 8: Strings

An image tiles held together with string, with characters written on tiles, reading "Illuminate"
Figure 8.1 credit: modification of work "Project 366 #65: 050316 A Night On The Tiles", by Pete/Flickr, CC BY 2.0

A string is a sequence of characters. Python provides useful methods for processing string values. In this chapter, string methods will be demonstrated including comparing string values, string slicing, searching, testing, formatting, and modifying.