{"id":1148,"date":"2020-11-15T05:31:34","date_gmt":"2020-11-15T05:31:34","guid":{"rendered":"https:\/\/www.pythontutorial.net\/?page_id=1148"},"modified":"2025-03-27T14:45:41","modified_gmt":"2025-03-27T14:45:41","slug":"python-tuple-vs-list","status":"publish","type":"page","link":"https:\/\/www.pythontutorial.net\/advanced-python\/python-tuple-vs-list\/","title":{"rendered":"Python Tuple vs. List"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you&#8217;ll learn the difference between tuple and list.<\/p>\n\n\n\n<p>Both <a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-tuples\/\">tuple<\/a> and <a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-list\/\">list<\/a> are <a href=\"https:\/\/www.pythontutorial.net\/advanced-python\/python-sequences\/\">sequence types<\/a>. However, they have some main differences.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='a-tuple-is-immutable-while-a-list-is-mutable'>A tuple is immutable while a list is mutable <a href=\"#a-tuple-is-immutable-while-a-list-is-mutable\" class=\"anchor\" id=\"a-tuple-is-immutable-while-a-list-is-mutable\" title=\"Anchor for A tuple is immutable while a list is mutable\">#<\/a><\/h2>\n\n\n\n<p>The following example defines a list and modifies the first element:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">fruits = &#91;<span class=\"hljs-string\">'apple'<\/span>, <span class=\"hljs-string\">'orange'<\/span>, <span class=\"hljs-string\">'banana'<\/span>]\nfruits&#91;<span class=\"hljs-number\">0<\/span>] = <span class=\"hljs-string\">'strawberry'<\/span>\n\nprint(fruits)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/www.pythontutorial.net\/playground\/?q=ZnJ1aXRzID0gWydhcHBsZScsICdvcmFuZ2UnLCAnYmFuYW5hJ10KZnJ1aXRzWzBdID0gJ3N0cmF3YmVycnknCgpwcmludChmcnVpdHMp\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"JSON \/ JSON with Comments\" data-shcb-language-slug=\"json\"><span><code class=\"hljs language-json\">&#91;'strawberry', 'orange', 'banana']<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JSON \/ JSON with Comments<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">json<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>The output indicate that you can mutable a list. However, you cannot mutable a tuple. The following will result in an error:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">fruits = (<span class=\"hljs-string\">'apple'<\/span>, <span class=\"hljs-string\">'orange'<\/span>, <span class=\"hljs-string\">'banana'<\/span>)\nfruits&#91;<span class=\"hljs-number\">0<\/span>] = <span class=\"hljs-string\">'strawberry'<\/span>    <\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/www.pythontutorial.net\/playground\/?q=ZnJ1aXRzID0gKCdhcHBsZScsICdvcmFuZ2UnLCAnYmFuYW5hJykKZnJ1aXRzWzBdID0gJ3N0cmF3YmVycnkn\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<p>Error:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\"><span class=\"hljs-built_in\">TypeError<\/span>: <span class=\"hljs-string\">'tuple'<\/span> object does not support item assignment<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Python doesn&#8217;t allow you to change the element of a tuple but let you can reference a new tuple. For example:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">fruits = (<span class=\"hljs-string\">'apple'<\/span>, <span class=\"hljs-string\">'orange'<\/span>, <span class=\"hljs-string\">'banana'<\/span>)\nfruits = (<span class=\"hljs-string\">'strawberry'<\/span>, <span class=\"hljs-string\">'orange'<\/span>, <span class=\"hljs-string\">'banana'<\/span>)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>In this example, Python creates a new tuple and bounds the <code>fruits<\/code> variable to the newly created tuple. <\/p>\n\n\n\n<p>If you examine the memory addresses of the tuple objects, you&#8217;ll see that the <code>fruits<\/code> variable references a different memory address after the assignment:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">fruits = (<span class=\"hljs-string\">'apple'<\/span>, <span class=\"hljs-string\">'orange'<\/span>, <span class=\"hljs-string\">'banana'<\/span>)\nprint(hex(id(fruits)))\n\nfruits = (<span class=\"hljs-string\">'strawberry'<\/span>, <span class=\"hljs-string\">'orange'<\/span>, <span class=\"hljs-string\">'banana'<\/span>)\nprint(hex(id(fruits)))\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/www.pythontutorial.net\/playground\/?q=ZnJ1aXRzID0gKCdhcHBsZScsICdvcmFuZ2UnLCAnYmFuYW5hJykKcHJpbnQoaGV4KGlkKGZydWl0cykpKQoKZnJ1aXRzID0gKCdzdHJhd2JlcnJ5JywgJ29yYW5nZScsICdiYW5hbmEnKQpwcmludChoZXgoaWQoZnJ1aXRzKSkp\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">0x1c018286e00\n0x1c018286e40<\/code><\/span><\/pre>\n\n\n<h2 class=\"wp-block-heading\" id='the-storage-efficiency-of-a-tuple-is-greater-than-a-list'>The storage efficiency of a tuple is greater than a list <a href=\"#the-storage-efficiency-of-a-tuple-is-greater-than-a-list\" class=\"anchor\" id=\"the-storage-efficiency-of-a-tuple-is-greater-than-a-list\" title=\"Anchor for The storage efficiency of a tuple is greater than a list\">#<\/a><\/h2>\n\n\n\n<p>A list is <a href=\"https:\/\/www.pythontutorial.net\/advanced-python\/python-mutable-and-immutable\/\">mutable<\/a>. It means that you can add more elements to it. Because of this, Python needs to allocate more memory than needed to the list. This is called over-allocating. The over-allocation improves performance when a list is expanded.<\/p>\n\n\n\n<p>Meanwhile, a tuple is immutable therefore its element count is fixed. So Python just needs to allocate enough memory to store the initial elements.<\/p>\n\n\n\n<p>As a result, the storage efficiency of a tuple is greater than a list.<\/p>\n\n\n\n<p>To get the size of an object, you use the <code>getsizeof<\/code> function from the <code>sys<\/code> module. <\/p>\n\n\n\n<p>The following shows the sizes of a list and a tuple that stores the same elements:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-keyword\">from<\/span> sys <span class=\"hljs-keyword\">import<\/span> getsizeof\n\nfruits = &#91;<span class=\"hljs-string\">'apple'<\/span>, <span class=\"hljs-string\">'orange'<\/span>, <span class=\"hljs-string\">'banana'<\/span>]\nprint(<span class=\"hljs-string\">f'The size of the list is <span class=\"hljs-subst\">{getsizeof(fruits)}<\/span> bytes.'<\/span>)\n\nfruits = (<span class=\"hljs-string\">'strawberry'<\/span>, <span class=\"hljs-string\">'orange'<\/span>, <span class=\"hljs-string\">'banana'<\/span>)\nprint(<span class=\"hljs-string\">f'The size of the tuple is <span class=\"hljs-subst\">{getsizeof(fruits)}<\/span> bytes.'<\/span>)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">The size of the <span class=\"hljs-keyword\">list<\/span> is <span class=\"hljs-number\">80<\/span> bytes.\nThe size of the tuple is <span class=\"hljs-number\">64<\/span> bytes.<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\" id='copying-a-tuple-is-faster-than-a-list'>Copying a tuple is faster than a list <a href=\"#copying-a-tuple-is-faster-than-a-list\" class=\"anchor\" id=\"copying-a-tuple-is-faster-than-a-list\" title=\"Anchor for Copying a tuple is faster than a list\">#<\/a><\/h2>\n\n\n\n<p>When you copy a list, Python creates a new list. The following example illustrates copying a list to another:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">fruit_list = &#91;<span class=\"hljs-string\">'apple'<\/span>, <span class=\"hljs-string\">'orange'<\/span>, <span class=\"hljs-string\">'banana'<\/span>]\nfruit_list2 = list(fruit_list)\n\n\nprint(id(fruit_list) == id(fruit_list2))  <span class=\"hljs-comment\"># False<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/www.pythontutorial.net\/playground\/?q=ZnJ1aXRfbGlzdCA9IFsnYXBwbGUnLCAnb3JhbmdlJywgJ2JhbmFuYSddCmZydWl0X2xpc3QyID0gbGlzdChmcnVpdF9saXN0KQoKcHJpbnQoaWQoZnJ1aXRfbGlzdCkgPT0gaWQoZnJ1aXRfbGlzdDIpKSAgIyBGYWxzZQ%3D%3D\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<p>However, when copying a tuple, Python just reuses an existing tuple. It doesn&#8217;t create a new tuple because tuples are immutable.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-10\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">fruit_tuple = (<span class=\"hljs-string\">'apple'<\/span>, <span class=\"hljs-string\">'orange'<\/span>, <span class=\"hljs-string\">'banana'<\/span>)\nfruit_tuple2 = tuple(fruit_tuple)\n\nprint(id(fruit_tuple) == id(fruit_tuple2))  <span class=\"hljs-comment\"># True<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-10\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Therefore, copying a tuple always slightly faster than a list. <\/p>\n\n\n\n<p>The following compares the time that needs to copy a list and a tuple 1 million times:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-11\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-keyword\">from<\/span> timeit <span class=\"hljs-keyword\">import<\/span> timeit\n\ntimes = <span class=\"hljs-number\">1<\/span>_000_000\n\nt1 = timeit(<span class=\"hljs-string\">\"list(&#91;'apple', 'orange', 'banana'])\"<\/span>, number=times)\nprint(<span class=\"hljs-string\">f'Time to copy a list <span class=\"hljs-subst\">{times}<\/span> times: <span class=\"hljs-subst\">{t1}<\/span>'<\/span>)\n\nt2 = timeit(<span class=\"hljs-string\">\"tuple(('apple', 'orange', 'banana'))\"<\/span>, number=times)\nprint(<span class=\"hljs-string\">f'Time to copy a tuple <span class=\"hljs-subst\">{times}<\/span> times: <span class=\"hljs-subst\">{t2}<\/span>'<\/span>)\n\ndiff = <span class=\"hljs-string\">\"{:.0%}\"<\/span>.format((t2 - t1)\/t1)\n\nprint(<span class=\"hljs-string\">f'difference: <span class=\"hljs-subst\">{diff}<\/span>'<\/span>)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-11\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/www.pythontutorial.net\/playground\/?q=ZnJvbSB0aW1laXQgaW1wb3J0IHRpbWVpdAoKdGltZXMgPSAxXzAwMF8wMDAKCnQxID0gdGltZWl0KCJsaXN0KFsnYXBwbGUnLCAnb3JhbmdlJywgJ2JhbmFuYSddKSIsIG51bWJlcj10aW1lcykKcHJpbnQoZidUaW1lIHRvIGNvcHkgYSBsaXN0IHt0aW1lc30gdGltZXM6IHt0MX0nKQoKdDIgPSB0aW1laXQoInR1cGxlKCgnYXBwbGUnLCAnb3JhbmdlJywgJ2JhbmFuYScpKSIsIG51bWJlcj10aW1lcykKcHJpbnQoZidUaW1lIHRvIGNvcHkgYSB0dXBsZSB7dGltZXN9IHRpbWVzOiB7dDJ9JykKCmRpZmYgPSAiezouMCV9Ii5mb3JtYXQoKHQyIC0gdDEpL3QxKQoKcHJpbnQoZidkaWZmZXJlbmNlOiB7ZGlmZn0nKQ%3D%3D\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-12\" data-shcb-language-name=\"plaintext\" data-shcb-language-slug=\"plaintext\"><span><code class=\"hljs language-plaintext\">Time to copy a list 1000000 times: 0.33310000100027537\nTime to copy a tuple 1000000 times: 0.0569000010000309\ndifference: -83%<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-12\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">plaintext<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">plaintext<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\" id='summary'>Summary <a href=\"#summary\" class=\"anchor\" id=\"summary\" title=\"Anchor for Summary\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A tuple is immutable while a list is mutable.<\/li>\n\n\n\n<li>The storage efficiency of a tuple is greater than a list.<\/li>\n\n\n\n<li>Copying a tuple is slightly faster than a list.<\/li>\n\n\n\n<li>Use a tuple if you don&#8217;t intend to mutable it.<\/li>\n<\/ul>\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful ?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"1148\"\n\t\t\t\tdata-post-url=\"https:\/\/www.pythontutorial.net\/advanced-python\/python-tuple-vs-list\/\"\n\t\t\t\tdata-post-title=\"Python Tuple vs. List\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"1148\"\n\t\t\t\tdata-post-url=\"https:\/\/www.pythontutorial.net\/advanced-python\/python-tuple-vs-list\/\"\n\t\t\t\tdata-post-title=\"Python Tuple vs. List\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\t\t\t<input type=\"button\" name=\"wth-submit\" class=\"wth-btn wth-btn-submit\" id=\"wth-submit\" \/>\n\t\t\t<input type=\"button\" class=\"wth-btn wth-btn-cancel\" value=\"Cancel\" \/>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Summary: in this tutorial, you&#8217;ll learn the difference between tuple and list. Both tuple and list are sequence types. However, they have some main differences. A tuple is immutable while a list is mutable # The following example defines a list and modifies the first element: Try it Output: The output indicate that you can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":757,"menu_order":15,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1148","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/1148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/comments?post=1148"}],"version-history":[{"count":3,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/1148\/revisions"}],"predecessor-version":[{"id":7126,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/1148\/revisions\/7126"}],"up":[{"embeddable":true,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/757"}],"wp:attachment":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/media?parent=1148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}