2
Strings and Slicing
Python initially grew in popularity as a scripting language for orchestrating command-line utilities and processing input and output data. With built-in syntax, methods, and modules for string and sequence processing, Python was an attractive alternative to traditional shells and other common scripting languages (e.g., Perl). Since then, Python has continued to grow into adjacent domains, becoming an ideal programming language for parsing text, generating structured data, inspecting file formats, analyzing logs, and so on.
By using bytes and str types, Python programs can interface with human language text, manipulate low-level binary data formats, and perform input/output (I/O) and communicate with the outside world. Python ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access