{"id":6,"date":"2022-06-07T01:02:32","date_gmt":"2022-06-07T01:02:32","guid":{"rendered":"https:\/\/cesar-lujan.dev\/?p=6"},"modified":"2022-06-07T01:02:32","modified_gmt":"2022-06-07T01:02:32","slug":"python-tricks","status":"publish","type":"post","link":"https:\/\/cesar-lujan.dev\/?p=6","title":{"rendered":"Python Tricks"},"content":{"rendered":"\n<p>Print variable name and value<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Declaring a variable\nmy_colors = {1:'RED', 2:'BLUE', 3:'BLACK'}\n\n# Showing in console the variable name and it's value\nprint(f'My dictionary has: {my_colors = }')<\/code><\/pre>\n\n\n\n<p><em>Output<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>>>> My dictionary has: my_colors = {1: 'RED', 2: 'BLUE', 3: 'BLACK'}<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Print variable name and value Output<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/cesar-lujan.dev\/index.php?rest_route=\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cesar-lujan.dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cesar-lujan.dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cesar-lujan.dev\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cesar-lujan.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6"}],"version-history":[{"count":2,"href":"https:\/\/cesar-lujan.dev\/index.php?rest_route=\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":9,"href":"https:\/\/cesar-lujan.dev\/index.php?rest_route=\/wp\/v2\/posts\/6\/revisions\/9"}],"wp:attachment":[{"href":"https:\/\/cesar-lujan.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cesar-lujan.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cesar-lujan.dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}