Sequence-String and List

Krishna Kumar Mohbey, Malika Acharya · BENTHAM SCIENCE PUBLISHERS eBooks · 2023

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.

Read the paper · More papers on PaperTik