{"id":38241,"date":"2025-08-15T11:20:48","date_gmt":"2025-08-15T18:20:48","guid":{"rendered":"https:\/\/cloudinary.com\/blog\/?p=38241"},"modified":"2025-08-22T12:05:15","modified_gmt":"2025-08-22T19:05:15","slug":"how-to-use-python-exponentiation","status":"publish","type":"post","link":"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/","title":{"rendered":"How to Use Python Exponentiation?"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Question:<\/h3>\n\n\n\n<p>Hello everyone,<\/p>\n\n\n\n<p>I\u2019m working on a Python script that involves some calculations, including scaling image sizes and applying filters, and I need to understand how to handle exponents.<\/p>\n\n\n\n<p>Can someone explain how to use the Python exponent operator or functions? What\u2019s the syntax, and are there any gotchas?<\/p>\n\n\n\n<p>Thanks a lot!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Answer:<\/h3>\n\n\n\n<p>Great question! Exponentiation is a basic mathematical operation that raises a number to the power of another. In Python, exponentiation is straightforward and very useful for image processing tasks such as resizing images exponentially or calculating brightness adjustments.<\/p>\n\n\n\n<p>Let&#8217;s walk through how to do exponentiation in Python, with examples and best practices.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Exponent Operator: <code>**<\/code><\/h2>\n\n\n\n<p>The primary way to calculate exponents in Python is with the ** operator.<\/p>\n\n\n\n<p>Syntax:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php shcb-wrap-lines\">base ** exponent\n\n<span class=\"hljs-keyword\">print<\/span>(<span class=\"hljs-number\">2<\/span> ** <span class=\"hljs-number\">3<\/span>)\u00a0 <span class=\"hljs-comment\"># Output: 8<\/span>\n\n<span class=\"hljs-keyword\">print<\/span>(<span class=\"hljs-number\">5<\/span> ** <span class=\"hljs-number\">2<\/span>)\u00a0 <span class=\"hljs-comment\"># Output: 25<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><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<p>Here, <code>2 ** 3<\/code> means 2 raised to the power of 3 (2 \u00d7 2 \u00d7 2).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using <code>pow()<\/code> Function<\/h2>\n\n\n\n<p>Python also offers a built-in function <code>pow()<\/code> for exponentiation:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php shcb-wrap-lines\">pow(base, exponent)\n\n<span class=\"hljs-keyword\">print<\/span>(pow(<span class=\"hljs-number\">2<\/span>, <span class=\"hljs-number\">3<\/span>))\u00a0 <span class=\"hljs-comment\"># Output: 8<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><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<p>Additionally, <code>pow()<\/code> can take an optional third argument for modulo operations:<\/p>\n\n\n\n<p><code>print(pow(2, 3, 5))&nbsp; # Output: 3 (because 2^3 = 8, 8 % 5 = 3)<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Exponentiation With Floats<\/h2>\n\n\n\n<p>You can raise floats to powers as well:<\/p>\n\n\n\n<p><code>print(9.0 ** 0.5)&nbsp; # Output: 3.0 (square root)<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Use Case: Exponentially Resize Images<\/h2>\n\n\n\n<p>Suppose you want to double the width and height of an image repeatedly, doubling it <code>n<\/code> times:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php shcb-wrap-lines\">def resize_dimensions(width, height, n):\n\n\u00a0\u00a0\u00a0\u00a0new_width = width * (<span class=\"hljs-number\">2<\/span> ** n)\n\n\u00a0\u00a0\u00a0\u00a0new_height = height * (<span class=\"hljs-number\">2<\/span> ** n)\n\n\u00a0\u00a0\u00a0\u00a0<span class=\"hljs-keyword\">return<\/span> new_width, new_height\n\nwidth, height = <span class=\"hljs-number\">100<\/span>, <span class=\"hljs-number\">50<\/span>\n\nnew_w, new_h = resize_dimensions(width, height, <span class=\"hljs-number\">3<\/span>)\n\n<span class=\"hljs-keyword\">print<\/span>(f<span class=\"hljs-string\">\"New dimensions: {new_w} x {new_h}\"<\/span>)\n\n<span class=\"hljs-comment\"># Output: New dimensions: 800 x 400<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><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\">Exponentiation in Brightness or Filter Calculations<\/h2>\n\n\n\n<p>Image filters sometimes use exponential functions for gamma correction or brightness adjustments:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php shcb-wrap-lines\">def adjust_brightness(value, gamma):\n\n\u00a0\u00a0\u00a0\u00a0<span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-number\">255<\/span> * ((value \/ <span class=\"hljs-number\">255<\/span>) ** gamma)\n\nbrightness = adjust_brightness(<span class=\"hljs-number\">128<\/span>, <span class=\"hljs-number\">2.2<\/span>)\n\n<span class=\"hljs-keyword\">print<\/span>(round(brightness))\u00a0 <span class=\"hljs-comment\"># Output: 55<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><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\">TL;DR: Python Exponent Summary<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Method<\/strong><\/td><td><strong>Syntax<\/strong><\/td><td><strong>Notes<\/strong><\/td><\/tr><tr><td><strong>Exponent operator<\/strong><\/td><td><code>base ** exponent<\/code><\/td><td>Most common and readable<\/td><\/tr><tr><td><strong>Built-in pow()<\/strong><\/td><td><code>pow(base, exponent)<\/code><\/td><td>Supports optional modulo as third arg<\/td><\/tr><tr><td><strong>Floating point<\/strong><\/td><td>Works with floats too<\/td><td>Example: <code>9.0 ** 0.5<\/code> for square root<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Common Pitfalls<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Don\u2019t confuse ^ (bitwise XOR) with exponentiation. Use <code>**<\/code> instead.\n<ul class=\"wp-block-list\">\n<li><code>print(2 ^ 3)&nbsp; # Output: 1 (not 8!)<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>For very large powers, results can be huge, so factor in performance and memory.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Final Thoughts<\/h2>\n\n\n\n<p>Exponentiation is a simple yet powerful operation in Python, invaluable in image processing tasks, data transformations, and beyond. Whether you&#8217;re doubling image sizes, performing gamma corrections, or calculating exponential growth, <code>**<\/code> and <code>pow()<\/code> have you covered.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: Hello everyone, I\u2019m working on a Python script that involves some calculations, including scaling image sizes and applying filters, and I need to understand how to handle exponents. Can someone explain how to use the Python exponent operator or functions? What\u2019s the syntax, and are there any gotchas? Thanks a lot! Answer: Great question! [&hellip;]<\/p>\n","protected":false},"author":112,"featured_media":38341,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_cloudinary_featured_overwrite":false,"footnotes":""},"categories":[1],"tags":[423],"class_list":["post-38241","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-questions"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.6 (Yoast SEO v26.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Use Python Exponentiation?<\/title>\n<meta name=\"description\" content=\"Question: Hello everyone, I\u2019m working on a Python script that involves some calculations, including scaling image sizes and applying filters, and I need\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use Python Exponentiation?\" \/>\n<meta property=\"og:description\" content=\"Question: Hello everyone, I\u2019m working on a Python script that involves some calculations, including scaling image sizes and applying filters, and I need\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudinary Blog\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-15T18:20:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-22T19:05:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1756252703\/blog-generic_python\/blog-generic_python.jpg?_i=AA\" \/>\n\t<meta property=\"og:image:width\" content=\"2000\" \/>\n\t<meta property=\"og:image:height\" content=\"1100\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"jeromehidalgosanz\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"NewsArticle\",\"@id\":\"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/\"},\"author\":{\"name\":\"jeromehidalgosanz\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/87d542a9f3b665a624072d59748ecce1\"},\"headline\":\"How to Use Python Exponentiation?\",\"datePublished\":\"2025-08-15T18:20:48+00:00\",\"dateModified\":\"2025-08-22T19:05:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/\"},\"wordCount\":300,\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1756252703\/blog-generic_python\/blog-generic_python.jpg?_i=AA\",\"keywords\":[\"Questions\"],\"inLanguage\":\"en-US\",\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/cloudinary.com\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/\",\"url\":\"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/\",\"name\":\"How to Use Python Exponentiation?\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1756252703\/blog-generic_python\/blog-generic_python.jpg?_i=AA\",\"datePublished\":\"2025-08-15T18:20:48+00:00\",\"dateModified\":\"2025-08-22T19:05:15+00:00\",\"description\":\"Question: Hello everyone, I\u2019m working on a Python script that involves some calculations, including scaling image sizes and applying filters, and I need\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/#primaryimage\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1756252703\/blog-generic_python\/blog-generic_python.jpg?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1756252703\/blog-generic_python\/blog-generic_python.jpg?_i=AA\",\"width\":2000,\"height\":1100},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudinary.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use Python Exponentiation?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\",\"url\":\"https:\/\/cloudinary.com\/blog\/\",\"name\":\"Cloudinary Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudinary.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\",\"name\":\"Cloudinary Blog\",\"url\":\"https:\/\/cloudinary.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA\",\"width\":312,\"height\":60,\"caption\":\"Cloudinary Blog\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/87d542a9f3b665a624072d59748ecce1\",\"name\":\"jeromehidalgosanz\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/21bd8bba3087dbeff42280210669b975ea98b59ca9f427e828f4b59c4bae58dd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/21bd8bba3087dbeff42280210669b975ea98b59ca9f427e828f4b59c4bae58dd?s=96&d=mm&r=g\",\"caption\":\"jeromehidalgosanz\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Use Python Exponentiation?","description":"Question: Hello everyone, I\u2019m working on a Python script that involves some calculations, including scaling image sizes and applying filters, and I need","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:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/","og_locale":"en_US","og_type":"article","og_title":"How to Use Python Exponentiation?","og_description":"Question: Hello everyone, I\u2019m working on a Python script that involves some calculations, including scaling image sizes and applying filters, and I need","og_url":"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/","og_site_name":"Cloudinary Blog","article_published_time":"2025-08-15T18:20:48+00:00","article_modified_time":"2025-08-22T19:05:15+00:00","og_image":[{"width":2000,"height":1100,"url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1756252703\/blog-generic_python\/blog-generic_python.jpg?_i=AA","type":"image\/jpeg"}],"author":"jeromehidalgosanz","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/#article","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/"},"author":{"name":"jeromehidalgosanz","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/87d542a9f3b665a624072d59748ecce1"},"headline":"How to Use Python Exponentiation?","datePublished":"2025-08-15T18:20:48+00:00","dateModified":"2025-08-22T19:05:15+00:00","mainEntityOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/"},"wordCount":300,"publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1756252703\/blog-generic_python\/blog-generic_python.jpg?_i=AA","keywords":["Questions"],"inLanguage":"en-US","copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/cloudinary.com\/#organization"}},{"@type":"WebPage","@id":"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/","url":"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/","name":"How to Use Python Exponentiation?","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/#primaryimage"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1756252703\/blog-generic_python\/blog-generic_python.jpg?_i=AA","datePublished":"2025-08-15T18:20:48+00:00","dateModified":"2025-08-22T19:05:15+00:00","description":"Question: Hello everyone, I\u2019m working on a Python script that involves some calculations, including scaling image sizes and applying filters, and I need","breadcrumb":{"@id":"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/#primaryimage","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1756252703\/blog-generic_python\/blog-generic_python.jpg?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1756252703\/blog-generic_python\/blog-generic_python.jpg?_i=AA","width":2000,"height":1100},{"@type":"BreadcrumbList","@id":"https:\/\/cloudinary.com\/blog\/questions\/how-to-use-python-exponentiation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudinary.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Use Python Exponentiation?"}]},{"@type":"WebSite","@id":"https:\/\/cloudinary.com\/blog\/#website","url":"https:\/\/cloudinary.com\/blog\/","name":"Cloudinary Blog","description":"","publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudinary.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cloudinary.com\/blog\/#organization","name":"Cloudinary Blog","url":"https:\/\/cloudinary.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA","width":312,"height":60,"caption":"Cloudinary Blog"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/87d542a9f3b665a624072d59748ecce1","name":"jeromehidalgosanz","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/21bd8bba3087dbeff42280210669b975ea98b59ca9f427e828f4b59c4bae58dd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21bd8bba3087dbeff42280210669b975ea98b59ca9f427e828f4b59c4bae58dd?s=96&d=mm&r=g","caption":"jeromehidalgosanz"}}]}},"jetpack_featured_media_url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1756252703\/blog-generic_python\/blog-generic_python.jpg?_i=AA","_links":{"self":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/38241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/users\/112"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/comments?post=38241"}],"version-history":[{"count":2,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/38241\/revisions"}],"predecessor-version":[{"id":38423,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/38241\/revisions\/38423"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media\/38341"}],"wp:attachment":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media?parent=38241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/categories?post=38241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/tags?post=38241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}