{"id":25647,"date":"2023-04-01T12:15:00","date_gmt":"2023-04-01T06:45:00","guid":{"rendered":"http:\/\/www.pythonpool.com\/?p=25647"},"modified":"2023-04-01T12:15:01","modified_gmt":"2023-04-01T06:45:01","slug":"python-curly-brackets","status":"publish","type":"post","link":"https:\/\/www.pythonpool.com\/python-curly-brackets\/","title":{"rendered":"Mastering Python Curly Brackets: A Comprehensive Guide"},"content":{"rendered":"\n<p>Python language is a powerful tool that can be used to do just about anything. However, it&#8217;s also fairly easy to get started with. Even if you&#8217;re new to programming, though, you might find it a bit challenging to get your hands on Python right away. Python Curly brackets help in easier access to some of its functionalities.<\/p>\n\n\n\n<p>That&#8217;s where this article comes in! In this article, we&#8217;ll be walking through some of the basics of how these curly brackets work. We&#8217;ll also talk about why they&#8217;re so important and how they help make programs more readable by breaking up long lines of code into shorter pieces that users can understand much easier than if everything was all on one line.<\/p>\n\n\n\n<p> Curly brackets are one of the most commonly used identifiers in any programming language. They are commonly used in string manipulation and data structures. This article will explore the various uses for {} in python as well as how to use them.  You will learn:  &#8211; What are Python Curly Brackets?  &#8211; How to use Python Curly Brackets? <\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #990303;color:#990303\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #990303;color:#990303\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#Uses_of_Python_Curly_Brackets\" >Uses of Python Curly Brackets<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#Curly_brackets_in_Dictionaries\" >Curly brackets in Dictionaries<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#Curly_brackets_in_Sets\" >Curly brackets in Sets<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#Format_Strings_using_Curly_Brackets\" >Format Strings using Curly Brackets<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#Curly_brackets_in_f_strings_in_Python\" >Curly brackets in f strings in Python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#Concatenate_Strings_using_Curly_brackets\" >Concatenate Strings using Curly brackets<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#Escaping_Curly_Brackets_in_format\" >Escaping Curly Brackets in .format()<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#Other_Brackets_used_in_Python\" >Other Brackets used in Python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#Comparison_between_Curly_braces_and_square_brackets\" >Comparison between Curly braces and square brackets<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#Difference_Between_and\" >Difference Between {} and []<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#FAQ\" >FAQ<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#Trending_Python_Articles\" >Trending Python Articles<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-uses-of-python-curly-brackets\"><span class=\"ez-toc-section\" id=\"Uses_of_Python_Curly_Brackets\"><\/span>Uses of Python Curly Brackets<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Curly brackets have multiple uses some of which are :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Python uses the { } curly bracket pair to enclose function definitions and class definitions.<\/li>\n\n\n\n<li>You can also use them to enclose methods and variable definitions within a class or function.<\/li>\n\n\n\n<li>In most cases, when you want to break up or organize your code into different sections and make it more readable, you can use them.<\/li>\n\n\n\n<li>They are helpful in creating dictionaries. <\/li>\n<\/ul>\n\n\n\n<p>In python, these brackets can&#8217;t aid in flow control. We need to write indented code for the same.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-curly-brackets-in-dictionaries\"><span class=\"ez-toc-section\" id=\"Curly_brackets_in_Dictionaries\"><\/span>Curly brackets in Dictionaries <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you plan to create an empty dictionary, you can definitely go with curly brackets. You can also create a dictionary with key-value pairs using these brackets. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\ndict={}\ndict1={'a':1,'b':2}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-curly-brackets-in-sets\"><span class=\"ez-toc-section\" id=\"Curly_brackets_in_Sets\"><\/span>Curly brackets in Sets<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>These types of brackets are also used to create sets. However, you can&#8217;t create empty sets this way. In case you don&#8217;t pass a value, it will create an empty dictionary. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nabc={1,2,3,4}\n<\/pre><\/div>\n\n\n<p>The above-mentioned code means that you can create a set as a dictionary that doesn&#8217;t have keys. Here, only the value is present. <\/p>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-kilo monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Popular now<\/span><span class=\"monsterinsights-inline-popular-posts-border\" ><\/span><span class=\"monsterinsights-inline-popular-posts-border-2\" ><\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\"  href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-cant-compare-datetime-datetime-to-datetime-date\/\">[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-format-strings-using-curly-brackets\"><span class=\"ez-toc-section\" id=\"Format_Strings_using_Curly_Brackets\"><\/span>Format Strings using Curly Brackets <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>This places the value which you give in the str.format() function. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nprint(&quot;Anirudh has {} tasks.&quot;.format(5))\nprint(&quot;Sakshi has {} tasks and {} assignments.&quot;.format(5,6))\n#for multiple assignment \n<\/pre><\/div>\n\n\n<p>Concluding, you can format the string in many ways. It depends on the number of placeholders you are using. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-curly-brackets-in-f-strings-in-python\"><span class=\"ez-toc-section\" id=\"Curly_brackets_in_f_strings_in_Python\"><\/span>Curly brackets in f strings in Python<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>When you&#8217;re working with f strings, and you want to include a curly bracket in your answer, you should duplicate the bracket. Using two sets of curly brackets helps in escaping the bracket. See this example to get a better idea:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nx=&quot;new_var&quot;\n f&quot;{x} {{x}}&quot;\n#output will be:  'new_var {x}'\n<\/pre><\/div>\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-golf monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Popular now<\/span><span class=\"monsterinsights-inline-popular-posts-border\" ><\/span><span class=\"monsterinsights-inline-popular-posts-border-2\" ><\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\"  href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\">[Fixed] nameerror: name Unicode is not defined<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-concatenate-strings-using-curly-brackets\"><span class=\"ez-toc-section\" id=\"Concatenate_Strings_using_Curly_brackets\"><\/span>Concatenate Strings using Curly brackets <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here, curly brackets help in concatenation.  Make sure that you use the .format() function. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nA= 'James'\nB = 'Bond'\nC= ' '\nprint(&quot;Output is: {}{}{}&quot;.format(A,C,B))\n#Output is: James Bond\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-escaping-curly-brackets-in-format\"><span class=\"ez-toc-section\" id=\"Escaping_Curly_Brackets_in_format\"><\/span>Escaping Curly Brackets in .format()<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You should also know that escaping curly brackets can be done using the format function too. Similar to the previous case, you need to duplicate the bracket.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nx = &quot; {{ Result}} {0} &quot;\nprint(x.format(42))\n# output will be ' {Result} 42 '\n# here, 0 means the first argument for the format function \n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-other-brackets-used-in-python\"><span class=\"ez-toc-section\" id=\"Other_Brackets_used_in_Python\"><\/span>Other Brackets used in Python <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>( ) represents a <span style=\"text-decoration: underline;\"><strong><a href=\"http:\/\/www.pythonpool.com\/typeerror-tuple-object-is-not-callable-solved\/\" target=\"_blank\" rel=\"noreferrer noopener\">tuple<\/a><\/strong><\/span>, it is immutable and contains different data types. It is also used in function calls, creating objects, etc.<\/p>\n\n\n\n<p>[ ] represents a list, it is mutable and contains elements of the same data type. It also helps in accessing elements of a list\/ collection. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-comparison-between-curly-braces-and-square-brackets\"><span class=\"ez-toc-section\" id=\"Comparison_between_Curly_braces_and_square_brackets\"><\/span>Comparison between Curly braces and square brackets <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Let&#8217;s understand this with the help of an example:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\ntype({})  #&lt;type 'dict'&gt;\ntype(&#x5B;])  #&lt;type 'list'&gt;\ntype({1,2,3,4})  #&lt;type 'set'&gt;\ntype({a: 2})  #&lt;type 'dict'&gt;, key:value pair\ntype(&#x5B;x,y,z])  #&lt;type 'list'&gt;\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-difference-between-and\"><span class=\"ez-toc-section\" id=\"Difference_Between_and\"><\/span>Difference Between {} and []<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><strong>Curly Braces {}<\/strong><\/th><th><strong>Square Brackets []<\/strong><\/th><\/tr><\/thead><tbody><tr><td>It is used in dictionaries and sets.<\/td><td>It is used in lists.<\/td><\/tr><tr><td>It is used to declare dictionary elements (key-value pairs.)<\/td><td>It helps to access elements of a dictionary. <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-alpha monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Trending<\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\"  href=\"https:\/\/www.pythonpool.com\/solved-runtimeerror-cuda-error-invalid-device-ordinal\/\">[Solved] runtimeerror: cuda error: invalid device ordinal<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-faq\"><span class=\"ez-toc-section\" id=\"FAQ\"><\/span>FAQ<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1676401556691\"><strong class=\"schema-faq-question\">Are {} and [] the same?<\/strong> <p class=\"schema-faq-answer\">No, these are different types of brackets used in python. The first one is a curly bracket which is used for dictionaries. The second one is used to create lists in Python.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1676464523174\"><strong class=\"schema-faq-question\">Is it necessary to use curly braces for indenting in Python?<\/strong> <p class=\"schema-faq-answer\">In Python, we don&#8217;t use curly braces, but we need to write properly indented code.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1676803657885\"><strong class=\"schema-faq-question\">What are {} used for in python?<\/strong> <p class=\"schema-faq-answer\">It helps to create dictionaries and sets and is of great use in string formatting, too.<\/p> <\/div> <\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Python has curly brackets that are of great use in the programming language. In this article, we discussed their usage well.<\/p>\n\n\n\n<p class=\"has-very-light-gray-to-cyan-bluish-gray-gradient-background has-background\"><strong>See also: <a href=\"http:\/\/www.pythonpool.com\/remove-brackets-from-list-python\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"text-decoration: underline;\">5 Ways to Remove Brackets from List in Python<\/span><\/a><\/strong><\/p>\n\n\n<div class=\"monsterinsights-widget-popular-posts monsterinsights-widget-popular-posts-delta monsterinsights-popular-posts-styled monsterinsights-widget-popular-posts-columns-2\"><h2 class=\"monsterinsights-widget-popular-posts-widget-title\"><span class=\"ez-toc-section\" id=\"Trending_Python_Articles\"><\/span>Trending Python Articles<span class=\"ez-toc-section-end\"><\/span><\/h2><ul class=\"monsterinsights-widget-popular-posts-list\"><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-cant-compare-datetime-datetime-to-datetime-date\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_.webp 1200w \" alt=\"[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 11, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined.webp 1200w \" alt=\"[Fixed] nameerror: name Unicode is not defined\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] nameerror: name Unicode is not defined<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/solved-runtimeerror-cuda-error-invalid-device-ordinal\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal.webp 1200w \" alt=\"[Solved] runtimeerror: cuda error: invalid device ordinal\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Solved] runtimeerror: cuda error: invalid device ordinal<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-type-numpy-ndarray-doesnt-define-__round__-method\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method.webp 1200w \" alt=\"[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><\/ul><\/div><p><\/p>","protected":false},"excerpt":{"rendered":"<p>Python language is a powerful tool that can be used to do just about anything. However, it&#8217;s also fairly easy to get started with. Even &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Mastering Python Curly Brackets: A Comprehensive Guide\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#more-25647\" aria-label=\"More on Mastering Python Curly Brackets: A Comprehensive Guide\">Read more<\/a><\/p>\n","protected":false},"author":38,"featured_media":26890,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[15],"tags":[5769,5768,5770,5767,5771],"class_list":["post-25647","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-python-curly-brackets-format","tag-python-curly-brackets-in-string","tag-python-curly-brackets-in-string-format","tag-python-curly-brackets-list","tag-python-curly-brackets-set","infinite-scroll-item"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.1 (Yoast SEO v25.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Mastering Python Curly Brackets: A Comprehensive Guide - Python Pool<\/title>\n<meta name=\"description\" content=\"Do you know the varied uses of Python Curly Brackets? Check this blog to know more about the Curly Braces.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mastering Python Curly Brackets: A Comprehensive Guide\" \/>\n<meta property=\"og:description\" content=\"Python language is a powerful tool that can be used to do just about anything. However, it&#039;s also fairly easy to get started with. Even if you&#039;re new to\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/python-curly-brackets\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-01T06:45:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-01T06:45:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2023\/03\/Python-Curly-Brackets.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Namrata Gulati\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:site\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Namrata Gulati\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/\"},\"author\":{\"name\":\"Namrata Gulati\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/294338f378f0853e6af4ca4a5a907ea6\"},\"headline\":\"Mastering Python Curly Brackets: A Comprehensive Guide\",\"datePublished\":\"2023-04-01T06:45:00+00:00\",\"dateModified\":\"2023-04-01T06:45:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/\"},\"wordCount\":720,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2023\/03\/Python-Curly-Brackets.webp\",\"keywords\":[\"python curly brackets format\",\"python curly brackets in string\",\"python curly brackets in string format\",\"python curly brackets list\",\"python curly brackets set\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#respond\"]}]},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/\",\"url\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/\",\"name\":\"Mastering Python Curly Brackets: A Comprehensive Guide - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2023\/03\/Python-Curly-Brackets.webp\",\"datePublished\":\"2023-04-01T06:45:00+00:00\",\"dateModified\":\"2023-04-01T06:45:01+00:00\",\"description\":\"Do you know the varied uses of Python Curly Brackets? Check this blog to know more about the Curly Braces.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676401556691\"},{\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676464523174\"},{\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676803657885\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/python-curly-brackets\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2023\/03\/Python-Curly-Brackets.webp\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2023\/03\/Python-Curly-Brackets.webp\",\"width\":1200,\"height\":628,\"caption\":\"Python Curly Brackets\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mastering Python Curly Brackets: A Comprehensive Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pythonpool.com\/#website\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"name\":\"Python Pool\",\"description\":\"Your One-Stop Python Learning Destination\",\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pythonpool.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pythonpool.com\/#organization\",\"name\":\"Python Pool\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"contentUrl\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"width\":452,\"height\":185,\"caption\":\"Python Pool\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/pythonpool\",\"https:\/\/www.youtube.com\/c\/pythonpool\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/294338f378f0853e6af4ca4a5a907ea6\",\"name\":\"Namrata Gulati\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/19c5e6bfbc6202d4017b79f726b2ad5e520491d67ff428a87c071afef23ecd89?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/19c5e6bfbc6202d4017b79f726b2ad5e520491d67ff428a87c071afef23ecd89?s=96&d=wavatar&r=g\",\"caption\":\"Namrata Gulati\"}},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676401556691\",\"position\":1,\"url\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676401556691\",\"name\":\"Are {} and [] the same?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No, these are different types of brackets used in python. The first one is a curly bracket which is used for dictionaries. The second one is used to create lists in Python.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676464523174\",\"position\":2,\"url\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676464523174\",\"name\":\"Is it necessary to use curly braces for indenting in Python?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"In Python, we don't use curly braces, but we need to write properly indented code.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676803657885\",\"position\":3,\"url\":\"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676803657885\",\"name\":\"What are {} used for in python?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"It helps to create dictionaries and sets and is of great use in string formatting, too.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Mastering Python Curly Brackets: A Comprehensive Guide - Python Pool","description":"Do you know the varied uses of Python Curly Brackets? Check this blog to know more about the Curly Braces.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pythonpool.com\/python-curly-brackets\/","og_locale":"en_US","og_type":"article","og_title":"Mastering Python Curly Brackets: A Comprehensive Guide","og_description":"Python language is a powerful tool that can be used to do just about anything. However, it's also fairly easy to get started with. Even if you're new to","og_url":"https:\/\/www.pythonpool.com\/python-curly-brackets\/","og_site_name":"Python Pool","article_published_time":"2023-04-01T06:45:00+00:00","article_modified_time":"2023-04-01T06:45:01+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2023\/03\/Python-Curly-Brackets.webp","type":"image\/webp"}],"author":"Namrata Gulati","twitter_card":"summary_large_image","twitter_creator":"@pythonpool","twitter_site":"@pythonpool","twitter_misc":{"Written by":"Namrata Gulati","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#article","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/"},"author":{"name":"Namrata Gulati","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/294338f378f0853e6af4ca4a5a907ea6"},"headline":"Mastering Python Curly Brackets: A Comprehensive Guide","datePublished":"2023-04-01T06:45:00+00:00","dateModified":"2023-04-01T06:45:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/"},"wordCount":720,"commentCount":0,"publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2023\/03\/Python-Curly-Brackets.webp","keywords":["python curly brackets format","python curly brackets in string","python curly brackets in string format","python curly brackets list","python curly brackets set"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pythonpool.com\/python-curly-brackets\/#respond"]}]},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/","url":"https:\/\/www.pythonpool.com\/python-curly-brackets\/","name":"Mastering Python Curly Brackets: A Comprehensive Guide - Python Pool","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#primaryimage"},"image":{"@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2023\/03\/Python-Curly-Brackets.webp","datePublished":"2023-04-01T06:45:00+00:00","dateModified":"2023-04-01T06:45:01+00:00","description":"Do you know the varied uses of Python Curly Brackets? Check this blog to know more about the Curly Braces.","breadcrumb":{"@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676401556691"},{"@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676464523174"},{"@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676803657885"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pythonpool.com\/python-curly-brackets\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#primaryimage","url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2023\/03\/Python-Curly-Brackets.webp","contentUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2023\/03\/Python-Curly-Brackets.webp","width":1200,"height":628,"caption":"Python Curly Brackets"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"Mastering Python Curly Brackets: A Comprehensive Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.pythonpool.com\/#website","url":"https:\/\/www.pythonpool.com\/","name":"Python Pool","description":"Your One-Stop Python Learning Destination","publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pythonpool.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.pythonpool.com\/#organization","name":"Python Pool","url":"https:\/\/www.pythonpool.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","contentUrl":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","width":452,"height":185,"caption":"Python Pool"},"image":{"@id":"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/pythonpool","https:\/\/www.youtube.com\/c\/pythonpool"]},{"@type":"Person","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/294338f378f0853e6af4ca4a5a907ea6","name":"Namrata Gulati","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/19c5e6bfbc6202d4017b79f726b2ad5e520491d67ff428a87c071afef23ecd89?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/19c5e6bfbc6202d4017b79f726b2ad5e520491d67ff428a87c071afef23ecd89?s=96&d=wavatar&r=g","caption":"Namrata Gulati"}},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676401556691","position":1,"url":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676401556691","name":"Are {} and [] the same?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"No, these are different types of brackets used in python. The first one is a curly bracket which is used for dictionaries. The second one is used to create lists in Python.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676464523174","position":2,"url":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676464523174","name":"Is it necessary to use curly braces for indenting in Python?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"In Python, we don't use curly braces, but we need to write properly indented code.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676803657885","position":3,"url":"https:\/\/www.pythonpool.com\/python-curly-brackets\/#faq-question-1676803657885","name":"What are {} used for in python?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"It helps to create dictionaries and sets and is of great use in string formatting, too.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/25647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/users\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/comments?post=25647"}],"version-history":[{"count":70,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/25647\/revisions"}],"predecessor-version":[{"id":26894,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/25647\/revisions\/26894"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/26890"}],"wp:attachment":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=25647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=25647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=25647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}