What is a dictionary in Python?

By ayush goel in 22 Sep 2023 | 04:07 pm
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

What is a dictionary in Python?

22 Sep 2023 | 04:07 pm
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023
  • A dictionary is a built-in data type in Python used to store key-value pairs. It is unordered and mutable.
  • Keys in a dictionary must be unique and immutable (e.g., strings, numbers, tuples), while values can be of any data type.
  • Dictionaries are created using curly braces {} or the dict() constructor
22 Sep 2023 | 06:55 pm
0 Likes

Report

Please describe about the report short and clearly.