{"id":261,"date":"2023-06-19T14:12:23","date_gmt":"2023-06-19T14:12:23","guid":{"rendered":"https:\/\/joseph-t-gordon.tech\/?p=261"},"modified":"2023-06-26T14:25:01","modified_gmt":"2023-06-26T14:25:01","slug":"post-48-the-use-of-tuples-within-dictionaries","status":"publish","type":"post","link":"https:\/\/joseph-t-gordon.tech\/index.php\/2023\/06\/19\/post-48-the-use-of-tuples-within-dictionaries\/","title":{"rendered":"Post #48 (Python Programming) &#8211; The use of tuples within Dictionaries"},"content":{"rendered":"\n<p>I&#8217;ve mentioned how tuples can be used within dictionaries in a previous post but I thought I would take the time just to show what that would look like, this will be a quick one.<\/p>\n\n\n\n<p>Ex:<\/p>\n\n\n\n<p>Dictionary = {Variable: 5, Float: 5.5, list: [1,2,3,4,5], tuple:1,}<\/p>\n\n\n\n<p>print(Dictionary[tuple])<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Result:<\/p>\n\n\n\n<p>1,<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve mentioned how tuples can be used within dictionaries in a previous post but I thought I would take the time just to show what that would look like, this will be a quick one. Ex: Dictionary = {Variable: 5, Float: 5.5, list: [1,2,3,4,5], tuple:1,} print(Dictionary[tuple]) Result: 1,<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/posts\/261"}],"collection":[{"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/comments?post=261"}],"version-history":[{"count":2,"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/posts\/261\/revisions"}],"predecessor-version":[{"id":332,"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/posts\/261\/revisions\/332"}],"wp:attachment":[{"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/media?parent=261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/categories?post=261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/tags?post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}