0% found this document useful (0 votes)
29 views9 pages

Dictionaries & Set in Python

The document discusses dictionaries and sets in Python, explaining that a dictionary is an unordered collection of key-value pairs with unique keys, while a set is an unordered collection of unique elements without duplicates. It also highlights the syntax and common operations for both data structures. Additionally, it briefly mentions the differences between dictionaries and sets.

Uploaded by

fahimnikzad2003
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)
29 views9 pages

Dictionaries & Set in Python

The document discusses dictionaries and sets in Python, explaining that a dictionary is an unordered collection of key-value pairs with unique keys, while a set is an unordered collection of unique elements without duplicates. It also highlights the syntax and common operations for both data structures. Additionally, it briefly mentions the differences between dictionaries and sets.

Uploaded by

fahimnikzad2003
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

Dictionaries & Set in

Python

Presenter: Prof. Assadullah Mohammadi


• A dictionary is an unordered
collection of data values used to
store data in key-value pairs.
Definition: • Each key must be unique, and it is
used to access the corresponding
value.
Syntax
Common
Operations
Definition
A set is an unordered collection of unique
Sets in Python elements. Sets are used when you want to
store multiple items without duplicates.
Syntax:
Common
Operations
Difference Between Dictionary and Set in Python
Thanks

You might also like