Discover Python, Part 3, Explore the Python type hierarchy

Using strings

From the developerWorks archives

Robert Brunner

Date archived: January 4, 2017 | First published: August 02, 2005

Unlike many other programming languages, the Python language does not include a special data type to handle a single character, such as "a" or "z." In contrast, Python takes a different approach: It uses a class designed especially for holding sequences of characters. This article introduces the string class and demonstrates different ways in which you can use a string within Python.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and illustrations may have changed.

Zone=Open source
ArticleTitle=Discover Python, Part 3: Explore the Python type hierarchy