Abstract
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.
About this chapter
Cite this chapter as:
Krishna Kumar Mohbey, Malika Acharya ;Sequence-String and List, Basics of Python Programming: A Quick Guide for Beginners (2023) 1: 77. https://doi.org/10.2174/9789815179637123010007
DOI https://doi.org/10.2174/9789815179637123010007 |
Publisher Name Bentham Science Publisher |