{"id":899,"date":"2020-11-01T05:24:42","date_gmt":"2020-11-01T05:24:42","guid":{"rendered":"https:\/\/www.pythontutorial.net\/?page_id=899"},"modified":"2025-03-27T15:08:07","modified_gmt":"2025-03-27T15:08:07","slug":"python-integers","status":"publish","type":"page","link":"https:\/\/www.pythontutorial.net\/advanced-python\/python-integers\/","title":{"rendered":"Python Integers"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you&#8217;ll learn about Python integers and how Python stores integers in the memory.<\/p>\n\n\n\n<p>Integers are whole numbers that include negative numbers, zero, and positive numbers such as -3, -2, -1, 0, 1, 2, 3.<\/p>\n\n\n\n<p>Python uses the class <code>int<\/code> to represent all integer numbers. All integers are objects.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='how-computers-store-integers'>How computers store integers <a href=\"#how-computers-store-integers\" class=\"anchor\" id=\"how-computers-store-integers\" title=\"Anchor for How computers store integers\">#<\/a><\/h2>\n\n\n\n<p>Computers can&#8217;t store integers directly. Instead, they only can store binary numbers such as 0 and 1.<\/p>\n\n\n\n<p>To store integers, the computers need to use binary numbers to represent the integers.<\/p>\n\n\n\n<p>For example, to store the number 5, the computers need to represent it using a base-2 number:<\/p>\n\n\n\n<p class=\"has-text-align-left\">5 = 1 x 2<sup>2<\/sup> + 0 x 2<sup>1 <\/sup>+ 1 x 2<sup>0<\/sup><\/p>\n\n\n\n<p>As you can see, it takes 3 bits to store the number 5 in the memory:<\/p>\n\n\n\n<p>(101)<sub>2<\/sub> = (5)<sub>10<\/sub><\/p>\n\n\n\n<p>Suppose that you have 8 bits, you can store up to 255 integers from zero to 255:<\/p>\n\n\n\n<p>255= 1x 2<sup>7<\/sup> + 1 x 2<sup>6 <\/sup>+ 1 x 2<sup>5<\/sup> + 1x 2<sup>4<\/sup> + 1 x 2<sup>3 <\/sup>+ 1 x 2<sup>2<\/sup> + 1x 2<sup>1<\/sup> + 1 x 2<sup>0<\/sup><\/p>\n\n\n\n<p>By using 8 bits, you can store up to 2<sup>8<\/sup> &#8211; 1 = 255 integers.<\/p>\n\n\n\n<p>To store both negative integers, zero, and positive integers, you need to reserve 1 bit for storing the sign, negative (-) and positive (+). Therefore, with 8 bits:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The largest integer that the computers can represent is 2<sup>7<\/sup> = 127. <\/li>\n\n\n\n<li>And the computers can store all integers in the range (-127, 127)<\/li>\n<\/ul>\n\n\n\n<p>Because the number zero doesn&#8217;t have a sign, the computers can squeeze out an extra number. Therefore, 8 bits can store all integers from -128 to 127.<\/p>\n\n\n\n<p>8-bits = [-2<sup>7<\/sup>, 2<sup>7<\/sup> &#8211; 1]<\/p>\n\n\n\n<p>Similarly, if you want to use 16 bits, 32 bits, and 64 bits to store integers, the ranges would be:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>16-bits ~ [-2<sup>15<\/sup>, 2<sup>15<\/sup> &#8211; 1] = [<code>-32,768<\/code>, <code>32,767<\/code>]<\/li>\n\n\n\n<li>32-bits ~ [-2<sup>31<\/sup>, 2<sup>31<\/sup> &#8211; 1] = [-<code>2,147,483,648<\/code>, <code>2,147,483,647<\/code>]<\/li>\n\n\n\n<li>64-bits ~ [-2<sup>63<\/sup>, 2<sup>63<\/sup> &#8211; 1] = [<code>-9,223,372,036,854,775,808<\/code>, <code>9,223,372,036,854,775,807<\/code>]<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id='how-python-represents-integers'>How Python represents integers <a href=\"#how-python-represents-integers\" class=\"anchor\" id=\"how-python-represents-integers\" title=\"Anchor for How Python represents integers\">#<\/a><\/h2>\n\n\n\n<p>Other programming languages such as Java and C# use a fixed number of bits to store integers.<\/p>\n\n\n\n<p>For example, C# has the <code>int<\/code> type that uses 32-bits and the <code>long<\/code> type that uses 64 bits to represent integers. Based on the integer types, you can determine the ranges of the integers those types can represent.<\/p>\n\n\n\n<p>Python, however, doesn&#8217;t use a fixed number of bit to store integers.  Instead, <strong>Python uses a variable number of bits to store integers<\/strong>. For example, 8 bits, 16 bits, 32 bits, 64 bits, 128 bits, and so on.<\/p>\n\n\n\n<p>The maximum integer number that Python can represent depends on the memory available.<\/p>\n\n\n\n<p>Also, integers are objects. Python needs an extra fixed number of bytes as an overhead for each integer.<\/p>\n\n\n\n<p>It&#8217;s important to note that the bigger the integer numbers are, the slower the calculations such as <code>+<\/code>, <code>-<\/code>, &#8230; will be.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='python-int-type'>Python int type <a href=\"#python-int-type\" class=\"anchor\" id=\"python-int-type\" title=\"Anchor for Python int type\">#<\/a><\/h2>\n\n\n\n<p>The following defines a <a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-variables\/\">variable<\/a> that <a href=\"https:\/\/www.pythontutorial.net\/advanced-python\/python-references\/\">references<\/a> an integer and uses the <code>type()<\/code> function to get the class name of the integer:<\/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\">counter = <span class=\"hljs-number\">10<\/span>\nprint(type(counter))<\/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>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">class<\/span> '<span class=\"hljs-attr\">int<\/span>'&gt;<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>The output indicates an integer is an instance of the class <code>int<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='getting-the-size-of-an-integer'>Getting the size of an integer <a href=\"#getting-the-size-of-an-integer\" class=\"anchor\" id=\"getting-the-size-of-an-integer\" title=\"Anchor for Getting the size of an integer\">#<\/a><\/h2>\n\n\n\n<p>To get the size of an integer, you use the <code>getsizeof()<\/code> function of the <code>sys<\/code> module. <\/p>\n\n\n\n<p>The <code>getsizeof()<\/code> function returns the number of bytes that Python uses to represent an integer. For example:<\/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\"><span class=\"hljs-keyword\">from<\/span> sys <span class=\"hljs-keyword\">import<\/span> getsizeof\n\ncounter = <span class=\"hljs-number\">0<\/span>\nsize = getsizeof(counter)\n\nprint(size)  <span class=\"hljs-comment\"># 24 bytes<\/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>Ouput:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-number\">24<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><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>To store the number 0, Python uses 24 bytes. Since storing the number zero, Python needs to use only 1 bit. Note that 1 byte equals 8 bits. <\/p>\n\n\n\n<p>Therefore, you can think that Python uses 24 bytes as an overhead for storing an integer object.<\/p>\n\n\n\n<p>The following returns the size of the integer 100:<\/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\"><span class=\"hljs-keyword\">from<\/span> sys <span class=\"hljs-keyword\">import<\/span> getsizeof\n\ncounter = <span class=\"hljs-number\">100<\/span>\nsize = getsizeof(counter)\n\nprint(size)  <span class=\"hljs-comment\"># 28 bytes<\/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>Output:<\/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\"><span class=\"hljs-number\">28<\/span><\/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>It returns 28 bytes. Since 24 bytes is an overhead, Python uses 4 bytes to represent the number 100.<\/p>\n\n\n\n<p>The following shows the size of the integer 2<sup>64<\/sup> :<\/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\ncounter = <span class=\"hljs-number\">2<\/span>**<span class=\"hljs-number\">64<\/span>\nsize = getsizeof(counter)\n\nprint(size)  <span class=\"hljs-comment\"># 36 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=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-number\">36<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><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>So to store the integer 2<sup>64<\/sup>, Python uses 36 bytes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='python-integer-operations'>Python integer operations <a href=\"#python-integer-operations\" class=\"anchor\" id=\"python-integer-operations\" title=\"Anchor for Python integer operations\">#<\/a><\/h2>\n\n\n\n<p>Python integers support all standard operations including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Addition +<\/li>\n\n\n\n<li>Subtraction &#8211; <\/li>\n\n\n\n<li>Multiplication * <\/li>\n\n\n\n<li>Division  \/<\/li>\n\n\n\n<li>Exponents **<\/li>\n<\/ul>\n\n\n\n<p>The result of addition, subtraction, multiplication, and exponents of integers is an integer. For example:<\/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\">a = <span class=\"hljs-number\">10<\/span>\nb = <span class=\"hljs-number\">20<\/span>\n\nc = a + b\nprint(c)\nprint(type(c))\n\n\nc = a - b\nprint(c)\nprint(type(c))\n\n\nc = a * b\nprint(c)\nprint(type(c))\n\nc = a ** b\nprint(c)\nprint(type(c))<\/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>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-10\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\">30\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">class<\/span> '<span class=\"hljs-attr\">int<\/span>'&gt;<\/span>\n-10\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">class<\/span> '<span class=\"hljs-attr\">int<\/span>'&gt;<\/span>\n200\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">class<\/span> '<span class=\"hljs-attr\">int<\/span>'&gt;<\/span>\n100000000000000000000\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">class<\/span> '<span class=\"hljs-attr\">int<\/span>'&gt;<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-10\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>However, the division of two integers always returns a floating-point number. For example:<\/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\">a = <span class=\"hljs-number\">10<\/span>\nb = <span class=\"hljs-number\">5<\/span>\nc = a \/ b\n\nprint(c)\nprint(type(c))<\/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=YSA9IDEwCmIgPSA1CmMgPSBhIC8gYgoKcHJpbnQoYykKcHJpbnQodHlwZShjKSk%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=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\">2.0\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">class<\/span> '<span class=\"hljs-attr\">float<\/span>'&gt;<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-12\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/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>Integers are whole numbers that include negative whole numbers, zero, and positive whole numbers.<\/li>\n\n\n\n<li>Computers use binary numbers to represent integers.<\/li>\n\n\n\n<li>Python uses a variable number of bits to represent integers. Therefore, the largest integer number that Python can represent depends on the available memory of the computer.<\/li>\n\n\n\n<li>In Python, all integers are instances of the class <code>int<\/code>.<\/li>\n\n\n\n<li>Use the <code>getsizeof()<\/code> function of the <code>sys<\/code> module to get the number of bytes of an integer.<\/li>\n\n\n\n<li>Python integers support all standard operations including addition, subtraction, multiplication, division, and exponent.<\/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=\"899\"\n\t\t\t\tdata-post-url=\"https:\/\/www.pythontutorial.net\/advanced-python\/python-integers\/\"\n\t\t\t\tdata-post-title=\"Python Integers\"\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=\"899\"\n\t\t\t\tdata-post-url=\"https:\/\/www.pythontutorial.net\/advanced-python\/python-integers\/\"\n\t\t\t\tdata-post-title=\"Python Integers\"\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>In this tutorial, you&#8217;ll learn about Python integers and how Python stores integers in the memory.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":757,"menu_order":24,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-899","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/899","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=899"}],"version-history":[{"count":1,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/899\/revisions"}],"predecessor-version":[{"id":7135,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/899\/revisions\/7135"}],"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=899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}