0% found this document useful (0 votes)
23 views61 pages

Sequential Data Structures Guide

Sequential data structures are ordered collections of data that can be accessed using indexing and traversed using loops. They include strings, tuples, and lists, which can be sliced, concatenated, and mutated in the case of lists. Strings are immutable sequences of characters often used to store text, while tuples are immutable sequences that can store heterogeneous data and lists are mutable sequences for frequently changing data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views61 pages

Sequential Data Structures Guide

Sequential data structures are ordered collections of data that can be accessed using indexing and traversed using loops. They include strings, tuples, and lists, which can be sliced, concatenated, and mutated in the case of lists. Strings are immutable sequences of characters often used to store text, while tuples are immutable sequences that can store heterogeneous data and lists are mutable sequences for frequently changing data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 61

Sequential Data Structure

• They are ordered collections of data. The elements in a string, tuple, or list
are stored in a specific order, and this order can be accessed using
indexing. They can be traversed using loops. You can use a for loop to
iterate through the elements of a string, tuple, or list, and perform an
operation on each element.They can be sliced. You can use slicing to
extract a subsequence of elements from a string, tuple, or list.They can be
concatenated. You can concatenate two or more strings, tuples, or lists to
create a new sequence.Strings are immutable sequences of characters.
They are often used to store text data.
• Tuples are immutable sequences of any type of data. They are often used
to store heterogeneous data, such as a list of numbers and strings.Lists are
mutable sequences of any type of data. They are often used to store data
that will be changed frequently, such as a shopping list or a to-do list.


• Is
• Is not
• X=10
• Y=10
• Z=20
• X is not z

You might also like