{"id":1457,"date":"2023-05-21T08:22:58","date_gmt":"2023-05-21T08:22:58","guid":{"rendered":"https:\/\/itnotes.apjsoftwares.com\/?p=1457"},"modified":"2023-05-21T08:22:58","modified_gmt":"2023-05-21T08:22:58","slug":"explain-dictionary-in-python-with-example","status":"publish","type":"post","link":"https:\/\/itnotes.apjsoftwares.in\/index.php\/2023\/05\/21\/explain-dictionary-in-python-with-example\/","title":{"rendered":"Explain Dictionary in Python with example"},"content":{"rendered":"\n<p>A Dictionary in Python is the unordered and changeable collection of data values that holds key-value pairs. Each key-value pair in the dictionary maps the key to its associated value making it more optimized. A Dictionary in python is declared by enclosing a comma-separated list of key-value pairs using curly braces({}). Python Dictionary is classified into two elements: Keys and Values.<\/p>\n\n\n\n<p><strong>Syntax for Python Dictionary:<\/strong><br><code>Dict = { ' Tim': 18, xyz,.. }<br><\/code><br><strong>Example<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Dict = {'Tim': 18,'Charlie':12,'Tiffany':22,'Robert':25}   \nprint((Dict['Tiffany']))<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A Dictionary in Python is the unordered and changeable collection of data values that holds&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[20],"tags":[],"_links":{"self":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1457"}],"collection":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/comments?post=1457"}],"version-history":[{"count":1,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1457\/revisions"}],"predecessor-version":[{"id":1458,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1457\/revisions\/1458"}],"wp:attachment":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/media?parent=1457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/categories?post=1457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/tags?post=1457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}