{"id":15049,"date":"2021-07-31T08:34:25","date_gmt":"2021-07-31T03:04:25","guid":{"rendered":"http:\/\/www.pythonpool.com\/?p=15049"},"modified":"2021-07-31T09:16:49","modified_gmt":"2021-07-31T03:46:49","slug":"pascals-triangle-python","status":"publish","type":"post","link":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/","title":{"rendered":"Print Pascal&#8217;s and Invert Pascal&#8217;s Triangle Using Python"},"content":{"rendered":"\n<p>Here we are going to see How to print pascal&#8217;s triangle in python? and what is pascal&#8217;s triangle?. It is one of the most interesting patterns in Mathematics. Pascal\u2019s triangle looks like a neatly arranged stack of numbers. We can also use pascal&#8217;s triangle to check if a number is prime or not. Let us see how to print pascal&#8217;s triangle in python.<\/p>\n\n\n\n<p><strong>Pascal&#8217;s triangle is a neatly arranged stack of numbers and it is a triangular array. The given below number is the sum of the above two numbers. In Pascal&#8217;s triangle, all the numbers on the outside are 1. It is also useful to check whether the given number is prime or not.<\/strong><\/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\/pascals-triangle-python\/#What_is_the_Pascals_triangle\" >What is the Pascal&#8217;s triangle?<\/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\/pascals-triangle-python\/#What_are_the_uses_of_the_pascals_triangle\" >What are the uses of the pascal&#8217;s triangle?<\/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\/pascals-triangle-python\/#What_is_the_formula_for_pascals_triangles\" >What is the formula for pascal&#8217;s triangles?<\/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\/pascals-triangle-python\/#How_to_print_pascals_triangle_in_python\" >How to print pascal&#8217;s triangle in python?<\/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\/pascals-triangle-python\/#How_to_print_pascals_triangle_in_python_using_function\" >How to print pascal&#8217;s triangle in python using function?<\/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\/pascals-triangle-python\/#How_to_print_pascals_triangle_in_a_list\" >How to print pascal&#8217;s triangle in a list?<\/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\/pascals-triangle-python\/#How_to_print_invert_pascals_triangle\" >How to print invert pascal&#8217;s triangle?<\/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\/pascals-triangle-python\/#FAQs\" >FAQs<\/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\/pascals-triangle-python\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#Trending_Right_Now\" >Trending Right Now<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-what-is-the-pascal-s-triangle\"><span class=\"ez-toc-section\" id=\"What_is_the_Pascals_triangle\"><\/span>What is the Pascal&#8217;s triangle?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"979\" src=\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/pascals-image.png\" alt=\"pascal's triangle\" class=\"wp-image-15052\" srcset=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/pascals-image.png 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/pascals-image-300x287.png 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/pascals-image-768x734.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>The above-shown image is known as pascal&#8217;s triangle. We can clearly understand pascal&#8217;s triangle using the above image. As we already said the outside number of the triangle is one. And the <strong>below number is a sum of the above two numbers<\/strong>. There it shows the sum of the numbers.<\/p>\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\/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\"><span class=\"ez-toc-section\" id=\"What_are_the_uses_of_the_pascals_triangle\"><\/span>What are the uses of the pascal&#8217;s triangle?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Used to check the given number is <strong><a href=\"http:\/\/www.pythonpool.com\/check-if-number-is-prime-in-python\/\" target=\"_blank\" rel=\"noopener\">prime<\/a> or not.<\/strong><\/li><li>Used to check how many times <strong>heads and tails <\/strong>will combine.<\/li><li>show the <strong>probability of a combination<\/strong>.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-the-formula-for-pascal-s-triangles\"><span class=\"ez-toc-section\" id=\"What_is_the_formula_for_pascals_triangles\"><\/span>What is the formula for pascal&#8217;s triangles?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/20210730_122817_0000-1-1024x576.png\" alt=\"formula for pascals triangle\" class=\"wp-image-15055\" width=\"361\" height=\"203\" srcset=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/20210730_122817_0000-1-1024x576.png 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/20210730_122817_0000-1-300x169.png 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/20210730_122817_0000-1-768x432.png 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/20210730_122817_0000-1-1536x864.png 1536w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/20210730_122817_0000-1.png 1920w\" sizes=\"(max-width: 361px) 100vw, 361px\" \/><\/figure><\/div>\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-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-how-to-print-pascal-s-triangle-in-python\"><span class=\"ez-toc-section\" id=\"How_to_print_pascals_triangle_in_python\"><\/span>How to print pascal&#8217;s triangle in python?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Code<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nn=int(input(&quot;Enter no of rows:&quot;))\nprint('\\n')\na=&#x5B;]\nfor i in range(n):\n    a.append(&#x5B;])\n    a&#x5B;i].append(1)\n    for j in range (1,i):\n        a&#x5B;i].append(a&#x5B;i-1]&#x5B;j-1]+a&#x5B;i-1]&#x5B;j])\n    if (n!=0):\n        a&#x5B;i].append(1)\nfor i in range(n):\n    print(&quot;    &quot;*(n-i),end=&quot; &quot;,sep=&quot; &quot;)\n    for j in range(0,i+1):\n        print(&quot;{0:6}&quot;.format(a&#x5B;i]&#x5B;j]),end=&quot; &quot;,sep=&quot; &quot;)\n    print()\n<\/pre><\/div>\n\n\n<p class=\"has-medium-font-size\"><strong>Explanation<\/strong><\/p>\n\n\n\n<p>Here we are printing the pascal&#8217;s triangle in a simple method. First getting the number of rows from the user. Then creating one empty list named as<strong>&nbsp;a<\/strong>. Now creating a for a loop. Using<strong>&nbsp;<\/strong><a href=\"http:\/\/www.pythonpool.com\/python-extend-vs-append\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"text-decoration: underline;\"><strong>append()&nbsp;<\/strong>function<\/span><\/a> to add up the elements. Creating a nested for loop to get the perfect structure of the pascal&#8217;s triangle. If n is not equal to 0 then it appends to a. For that, if a statement is used. Finally creating another for loop to print the pattern of the pascal&#8217;s triangle.<\/p>\n\n\n\n<p class=\"has-medium-font-size\" id=\"h-output\"><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Enter no of rows:6\n\n\n                             1\n                              \n                          1     1\n                          \n                      1      2     1\n                      \n                  1     3     3     1\n                  \n               1     4     6     4     1\n               \n            1    5    10    10     5     1<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-print-pascal-s-triangle-in-python-using-function\"><span class=\"ez-toc-section\" id=\"How_to_print_pascals_triangle_in_python_using_function\"><\/span>How to print pascal&#8217;s triangle in python using function?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Code<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\ndef pascalSpot(row,col):\n    if (col==1):\n        return 1\n    if (col==row):\n        return 1\n    upLeft=pascalSpot(row-1,col-1)\n    upRight=pascalSpot(row-1,col)\n    return upLeft+upRight\nfor r in range(1,10):\n    for c in range(1,r+1):\n        print(pascalSpot(r,c),end=&quot; &quot;)\n    print(&quot;&quot;)\n<\/pre><\/div>\n\n\n<p class=\"has-medium-font-size\"><strong>Explanation<\/strong><\/p>\n\n\n\n<p>Here we are going to print a pascal&#8217;s triangle using function. First, create a function named&nbsp;<strong>pascalSpot<\/strong>. If a column is equal to one and a column is equal to a row it returns one. For that, if a statement is used. Once <a href=\"https:\/\/en.wikipedia.org\/wiki\/Calculus\" target=\"_blank\" rel=\"noreferrer noopener\">calculus<\/a> figures out the two numbers so the ones in the upper-left and the other in the upper-right. Now we passing row-1, col-1, and row-1, col to the upper-left and upper-right respectively. Next, creating a for loop to print the pattern of the pascal&#8217;s triangle. You may think that the output structure looks different. But the properties are the same.<\/p>\n\n\n\n<p class=\"has-medium-font-size\" id=\"h-\"><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">1 \n1 1 \n1 2 1 \n1 3 3 1 \n1 4 6 4 1 \n1 5 10 10 5 1 \n1 6 15 20 15 6 1 \n1 7 21 35 35 21 7 1 \n1 8 28 56 70 56 28 8 1 <\/pre>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-india monsterinsights-popular-posts-styled\" style=\"background-color:#FBB82B;\"><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" style=\"color:#FD6A21;\">Trending:<\/span><span class=\"monsterinsights-inline-popular-posts-border\" ><\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\" style=\"font-size:18px;\" 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-how-to-print-pascal-s-triangle-in-a-list\"><span class=\"ez-toc-section\" id=\"How_to_print_pascals_triangle_in_a_list\"><\/span>How to print pascal&#8217;s triangle in a list?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Code<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nlst=&#x5B;1] \nfor i in range(5): \n    print(lst) \n    mylist=&#x5B;] \n    mylist.append(lst&#x5B;0]) \n    for i in range(len(lst)-1): \n        mylist.append(lst&#x5B;i]+lst&#x5B;i+1]) \n    mylist.append(lst&#x5B;-1]) \n    lst=mylist \n<\/pre><\/div>\n\n\n<p class=\"has-medium-font-size\"><strong>Explanation<\/strong><\/p>\n\n\n\n<p>Now we are going to see how to print the pascal&#8217;s triangle using the list. Creating a list named&nbsp;<strong>lst<\/strong>. Creating for loop and giving no of rows as a parameter. And then creating another empty list named&nbsp;<strong>mylist<\/strong>. Now creating a nested for loop. Using&nbsp;<strong>append()<\/strong>&nbsp;function to add the elements in the list. Finally giving as lst=mylist. So that both the lists are the same. Now printing the pascal&#8217;s triangle in a list.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[1]\n[1, 1]\n[1, 2, 1]\n[1, 3, 3, 1]\n[1, 4, 6, 4, 1]<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-print-invert-pascal-s-triangle\"><span class=\"ez-toc-section\" id=\"How_to_print_invert_pascals_triangle\"><\/span>How to print invert pascal&#8217;s triangle?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Code<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\ndef pascalSpot(row,col):\n    if (col==1):\n        return 1\n    if (col==row):\n        return 1\n    upLeft=pascalSpot(row-1,col-1)\n    upRight=pascalSpot(row-1,col)\n    return upLeft+upRight\nfor r in range(9, 0, -1):\n    for c in range(r,0,-1):\n        print(pascalSpot(r,c),end=&quot; &quot;)\n    print(&quot;&quot;)\n<\/pre><\/div>\n\n\n<p class=\"has-medium-font-size\"><strong>Explanation<\/strong><\/p>\n\n\n\n<p>Here we are going to print a pascal&#8217;s triangle using function. First, create a function named&nbsp;<strong>pascalSpot<\/strong>. If a column is equal to one and a column is equal to a row it returns one. For that, if a statement is used. Once calculus figures out the two numbers so the ones in the upper-left and the other in the upper-right. Now we passing row-1, col-1, and row-1, col to the upper-left and upper-right respectively. Next to creating a for loop to print the inverted pascal&#8217;s triangle. <\/p>\n\n\n\n<p class=\"has-medium-font-size\" id=\"h-\"><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">1 8 28 56 70 56 28 8 1 \n1 7 21 35 35 21 7 1 \n1 6 15 20 15 6 1 \n1 5 10 10 5 1 \n1 4 6 4 1 \n1 3 3 1 \n1 2 1 \n1 1 \n1 <\/pre>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-hotel monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-icon\" style=\"\"><svg width=\"14\" height=\"19\" viewBox=\"0 0 14 19\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M7.875 0.899463C7.875 1.59183 8.0816 2.24711 8.49479 2.8653C8.93229 3.48349 9.44271 4.06458 10.026 4.60859C10.6337 5.15259 11.2292 5.73369 11.8125 6.35188C12.4201 6.97007 12.9306 7.76135 13.3438 8.72572C13.7812 9.66537 14 10.7163 14 11.8785C14 13.832 13.3073 15.5011 11.9219 16.8858C10.5608 18.2953 8.92014 19 7 19C5.07986 19 3.42708 18.2953 2.04167 16.8858C0.680556 15.5011 0 13.832 0 11.8785C0 9.94973 0.668403 8.28062 2.00521 6.87116C2.27257 6.57443 2.58854 6.50024 2.95312 6.64861C3.31771 6.79697 3.5 7.08134 3.5 7.50171V10.6545C3.5 11.3221 3.71875 11.8908 4.15625 12.3607C4.61806 12.8305 5.16493 13.0654 5.79688 13.0654C6.45312 13.0654 7.01215 12.8428 7.47396 12.3978C7.93576 11.9279 8.16667 11.3592 8.16667 10.6916C8.16667 10.2712 8.04514 9.86318 7.80208 9.46754C7.58333 9.0719 7.31597 8.71336 7 8.3919C6.68403 8.07044 6.34375 7.73662 5.97917 7.39043C5.63889 7.04425 5.34722 6.66097 5.10417 6.2406C4.88542 5.82024 4.73958 5.35041 4.66667 4.83114C4.59375 4.31186 4.67882 3.68131 4.92188 2.93948C5.18924 2.17293 5.63889 1.33219 6.27083 0.417277C6.51389 0.0463641 6.84201 -0.0772735 7.25521 0.0463641C7.6684 0.170002 7.875 0.454368 7.875 0.899463Z\" fill=\"#EB5757\"><\/path><\/svg><\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\" style=\"color:#FD6A21;font-size:19px;\" href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-type-numpy-ndarray-doesnt-define-__round__-method\/\">[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-faqs\"><span class=\"ez-toc-section\" id=\"FAQs\"><\/span>FAQs<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-1627637054760\"><strong class=\"schema-faq-question\">1. What is mean by pascal&#8217;s triangle?<\/strong> <p class=\"schema-faq-answer\"> Pascal&#8217;s triangle is a neatly arranged stack of numbers and it is a triangular array. The given below number is the sum of the above two numbers. In Pascal&#8217;s triangle, all the numbers on the outside are 1.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1627637106460\"><strong class=\"schema-faq-question\">2. What are the uses of pascal&#8217;s triangle?<\/strong> <p class=\"schema-faq-answer\"> <li>Used to check the given number is <strong>prime or not.<\/strong>                                              Used to check how many times <strong>heads and tails will combine<\/strong>.                    show the <strong>probability of a combination<\/strong>.<\/li><\/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>Here we have seen about pascal&#8217;s triangle and different ways to print pascal&#8217;s triangle in python. Pascal&#8217;s triangle is one of the most interesting patterns and it is useful for day-to-day life. The above-shown methods are just examples. We can use some other ways to print it.<\/p>\n\n\n<div class=\"monsterinsights-widget-popular-posts monsterinsights-widget-popular-posts-charlie monsterinsights-popular-posts-styled monsterinsights-widget-popular-posts-columns-1\"><h2 class=\"monsterinsights-widget-popular-posts-widget-title\"><span class=\"ez-toc-section\" id=\"Trending_Right_Now\"><\/span>Trending Right Now<span class=\"ez-toc-section-end\"><\/span><\/h2><ul class=\"monsterinsights-widget-popular-posts-list\"><li style=\"background-color:#91D2FA;border-color:#CD3034;\"><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-cant-compare-datetime-datetime-to-datetime-date\/\"><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" style=\"color:#000000;font-size:18px;\">[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><\/div><\/div><\/a><\/li><li style=\"background-color:#91D2FA;border-color:#CD3034;\"><a href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\"><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" style=\"color:#000000;font-size:18px;\">[Fixed] nameerror: name Unicode is not defined<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><\/div><\/div><\/a><\/li><li style=\"background-color:#91D2FA;border-color:#CD3034;\"><a href=\"https:\/\/www.pythonpool.com\/solved-runtimeerror-cuda-error-invalid-device-ordinal\/\"><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" style=\"color:#000000;font-size:18px;\">[Solved] runtimeerror: cuda error: invalid device ordinal<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><\/div><\/div><\/a><\/li><li style=\"background-color:#91D2FA;border-color:#CD3034;\"><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-type-numpy-ndarray-doesnt-define-__round__-method\/\"><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" style=\"color:#000000;font-size:18px;\">[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><\/div><\/div><\/a><\/li><\/ul><\/div><p><\/p>","protected":false},"excerpt":{"rendered":"<p>Here we are going to see How to print pascal&#8217;s triangle in python? and what is pascal&#8217;s triangle?. It is one of the most interesting &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Print Pascal&#8217;s and Invert Pascal&#8217;s Triangle Using Python\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#more-15049\" aria-label=\"More on Print Pascal&#8217;s and Invert Pascal&#8217;s Triangle Using Python\">Read more<\/a><\/p>\n","protected":false},"author":22,"featured_media":15109,"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":[4380],"class_list":["post-15049","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-pascals-triangle-code-python","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>Print Pascal&#039;s and Invert Pascal&#039;s Triangle Using Python - Python Pool<\/title>\n<meta name=\"description\" content=\"Here we are going to see How to print pascal&#039;s triangle in python? and what is the pascal triangle?. It is one of the most interesting patterns\" \/>\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\/pascals-triangle-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Print Pascal&#039;s and Invert Pascal&#039;s Triangle Using Python\" \/>\n<meta property=\"og:description\" content=\"Here we are going to see How to print pascal&#039;s triangle in python? and what is pascal&#039;s triangle?. It is one of the most interesting patterns in\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-31T03:04:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-31T03:46:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Pascals-Triangle-in-Python.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=\"Priyalakshmi\" \/>\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=\"Priyalakshmi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/\"},\"author\":{\"name\":\"Priyalakshmi\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/83e6e22a6c461cc1a8445bb473db2f20\"},\"headline\":\"Print Pascal&#8217;s and Invert Pascal&#8217;s Triangle Using Python\",\"datePublished\":\"2021-07-31T03:04:25+00:00\",\"dateModified\":\"2021-07-31T03:46:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/\"},\"wordCount\":750,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Pascals-Triangle-in-Python.webp\",\"keywords\":[\"pascal&#039;s triangle code python\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#respond\"]}]},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/\",\"url\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/\",\"name\":\"Print Pascal's and Invert Pascal's Triangle Using Python - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Pascals-Triangle-in-Python.webp\",\"datePublished\":\"2021-07-31T03:04:25+00:00\",\"dateModified\":\"2021-07-31T03:46:49+00:00\",\"description\":\"Here we are going to see How to print pascal's triangle in python? and what is the pascal triangle?. It is one of the most interesting patterns\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#faq-question-1627637054760\"},{\"@id\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#faq-question-1627637106460\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Pascals-Triangle-in-Python.webp\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Pascals-Triangle-in-Python.webp\",\"width\":1200,\"height\":628,\"caption\":\"pascal's triangle python\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Print Pascal&#8217;s and Invert Pascal&#8217;s Triangle Using Python\"}]},{\"@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\/83e6e22a6c461cc1a8445bb473db2f20\",\"name\":\"Priyalakshmi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8f1aadb3b77a89fe5776d41fb52aec63200d0e68e92c71cb9aafac7fb4456696?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8f1aadb3b77a89fe5776d41fb52aec63200d0e68e92c71cb9aafac7fb4456696?s=96&d=wavatar&r=g\",\"caption\":\"Priyalakshmi\"}},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#faq-question-1627637054760\",\"position\":1,\"url\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#faq-question-1627637054760\",\"name\":\"1. What is mean by pascal's triangle?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\" Pascal's triangle is a neatly arranged stack of numbers and it is a triangular array. The given below number is the sum of the above two numbers. In Pascal's triangle, all the numbers on the outside are 1.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#faq-question-1627637106460\",\"position\":2,\"url\":\"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#faq-question-1627637106460\",\"name\":\"2. What are the uses of pascal's triangle?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\" <li>Used to check the given number is <strong>prime or not.<\/strong>                                              Used to check how many times <strong>heads and tails will combine<\/strong>.                    show the <strong>probability of a combination<\/strong>.<\/li>\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Print Pascal's and Invert Pascal's Triangle Using Python - Python Pool","description":"Here we are going to see How to print pascal's triangle in python? and what is the pascal triangle?. It is one of the most interesting patterns","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\/pascals-triangle-python\/","og_locale":"en_US","og_type":"article","og_title":"Print Pascal's and Invert Pascal's Triangle Using Python","og_description":"Here we are going to see How to print pascal's triangle in python? and what is pascal's triangle?. It is one of the most interesting patterns in","og_url":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/","og_site_name":"Python Pool","article_published_time":"2021-07-31T03:04:25+00:00","article_modified_time":"2021-07-31T03:46:49+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Pascals-Triangle-in-Python.webp","type":"image\/webp"}],"author":"Priyalakshmi","twitter_card":"summary_large_image","twitter_creator":"@pythonpool","twitter_site":"@pythonpool","twitter_misc":{"Written by":"Priyalakshmi","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#article","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/"},"author":{"name":"Priyalakshmi","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/83e6e22a6c461cc1a8445bb473db2f20"},"headline":"Print Pascal&#8217;s and Invert Pascal&#8217;s Triangle Using Python","datePublished":"2021-07-31T03:04:25+00:00","dateModified":"2021-07-31T03:46:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/"},"wordCount":750,"commentCount":0,"publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Pascals-Triangle-in-Python.webp","keywords":["pascal&#039;s triangle code python"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pythonpool.com\/pascals-triangle-python\/#respond"]}]},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/","url":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/","name":"Print Pascal's and Invert Pascal's Triangle Using Python - Python Pool","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#primaryimage"},"image":{"@id":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Pascals-Triangle-in-Python.webp","datePublished":"2021-07-31T03:04:25+00:00","dateModified":"2021-07-31T03:46:49+00:00","description":"Here we are going to see How to print pascal's triangle in python? and what is the pascal triangle?. It is one of the most interesting patterns","breadcrumb":{"@id":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#faq-question-1627637054760"},{"@id":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#faq-question-1627637106460"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pythonpool.com\/pascals-triangle-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#primaryimage","url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Pascals-Triangle-in-Python.webp","contentUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Pascals-Triangle-in-Python.webp","width":1200,"height":628,"caption":"pascal's triangle python"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"Print Pascal&#8217;s and Invert Pascal&#8217;s Triangle Using Python"}]},{"@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\/83e6e22a6c461cc1a8445bb473db2f20","name":"Priyalakshmi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8f1aadb3b77a89fe5776d41fb52aec63200d0e68e92c71cb9aafac7fb4456696?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8f1aadb3b77a89fe5776d41fb52aec63200d0e68e92c71cb9aafac7fb4456696?s=96&d=wavatar&r=g","caption":"Priyalakshmi"}},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#faq-question-1627637054760","position":1,"url":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#faq-question-1627637054760","name":"1. What is mean by pascal's triangle?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":" Pascal's triangle is a neatly arranged stack of numbers and it is a triangular array. The given below number is the sum of the above two numbers. In Pascal's triangle, all the numbers on the outside are 1.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#faq-question-1627637106460","position":2,"url":"https:\/\/www.pythonpool.com\/pascals-triangle-python\/#faq-question-1627637106460","name":"2. What are the uses of pascal's triangle?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":" <li>Used to check the given number is <strong>prime or not.<\/strong>                                              Used to check how many times <strong>heads and tails will combine<\/strong>.                    show the <strong>probability of a combination<\/strong>.<\/li>","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/15049","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\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/comments?post=15049"}],"version-history":[{"count":37,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/15049\/revisions"}],"predecessor-version":[{"id":24423,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/15049\/revisions\/24423"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/15109"}],"wp:attachment":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=15049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=15049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=15049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}