Basics of Python Programming: A Quick Guide for Beginners

Sequence-String and List

Author(s): Krishna Kumar Mohbey* and Malika Acharya * .

Pp: 77-120 (44)

DOI: 10.2174/9789815179637123010007

* (Excluding Mailing and Handling)


Unlike primitive data types like integers, floats and Boolean, a string is an ordered sequence of characters each of which can be accessed easily. Further, one of the important built-in data types of Python is lists. Lists and strings share many similarities like, lists are a sequence of values. List indices work similarly to string indices. But unlike strings lists are mutable. In this chapter, we introduce the core concepts of lists and strings and several operators that are used to make programming with these user-friendly.

Keywords: Mutable, Slicing, Ordered collection.

Related Journals
Related Books
© 2024 Bentham Science Publishers | Privacy Policy