April 7, 2024, 9 p.m. | Sakshi

DEV Community dev.to




Python Unleash'd 12


Hi


Starting with new data structure today.

We are done with sets.


Maps in C++ never annoyed me, so helpful data structure, I expect same from dictionary.





What is dictionary in python?



  • Stores values in key value pair.

  • curly brackets are used

  • Keys are immutable, while values are duplicate and mutable

  • Values can be of any data type

  • Key names are case sensitive


Here is an example from GeeksForGeeks too see how to create dictionary



Dict = …

beginners computerscience data dictionary duplicate expect key keys maps programming python stores value values

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Senior Data Engineer

@ Quantexa | Sydney, New South Wales, Australia

Staff Analytics Engineer

@ Warner Bros. Discovery | NY New York 230 Park Avenue South