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