Professional Documents
Culture Documents
Data Structure
Data Structure
Data
Structure
Tuples are
immutable Tup1=(101, “Amar”, 86.7)
Extracting
Individual
Elements
Minimum value
Maximum Value
List in Python
Tuple is an ordered collection of elements enclosed within[ ]
Lists are
mutable list=*101, “Amar”, 86.7+
Repeating Elements
Dictionary in Python
Dictionary is an unordered collection of key-value pairs enclosed within{ }
Dictionary
is mutable Student=,“John” : 101, “Adam” : 20-
Key Value
Extracting Values
Modifying a Dictionary
Adding a new element
Popping an element
Set in Python
Set is an unordered and unindexed collection of elements enclosed with{ }
Intersection