Strings
8. Strings#
In this chapter we are going to have a look at strings, one of the most used data types. We will see different ways to format and manipulate them.
Chapter Summary
What are string?
Formatting strings:
format specification
space and alignment
number formatting options
format() method
escape characters
Subtstrings:
search for substrings
counting occurrences
replace substrings
Other string methods
joining strings
splitting strings
split(), lstrp(), rstrip()
lower(), upper(), capitalzie(), title(), swapcase()