{"id":7074,"date":"2024-04-08T07:04:58","date_gmt":"2024-04-08T07:04:58","guid":{"rendered":"https:\/\/www.pickl.ai\/blog\/?post_type=web-story&#038;p=7074"},"modified":"2024-04-08T07:04:59","modified_gmt":"2024-04-08T07:04:59","slug":"armstrong-numbers-in-python","status":"publish","type":"web-story","link":"https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/","title":{"rendered":"Armstrong Numbers in Python"},"content":{"rendered":"<p><html amp=\"\" lang=\"en\"><head><meta charSet=\"utf-8\"\/><meta name=\"viewport\" content=\"width=device-width,minimum-scale=1,initial-scale=1\"\/><script async=\"\" src=\"https:\/\/cdn.ampproject.org\/v0.js\"><\/script><script async=\"\" src=\"https:\/\/cdn.ampproject.org\/v0\/amp-story-1.0.js\" custom-element=\"amp-story\"><\/script><link href=\"https:\/\/fonts.googleapis.com\/css2?display=swap&amp;family=Roboto%3Awght%40700&amp;family=Alegreya%3Awght%40700\" rel=\"stylesheet\"\/>\n<style amp-boilerplate=\"\">body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}<\/style>\n<p><noscript><\/p>\n<style amp-boilerplate=\"\">body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}<\/style>\n<p><\/noscript><\/p>\n<style amp-custom=\"\">\n              h1, h2, h3 { font-weight: normal; }<\/p>\n<p>              amp-story-page {\n                background-color: #131516;\n              }<\/p>\n<p>              amp-story-grid-layer {\n                overflow: visible;\n              }<\/p>\n<p>              @media (max-aspect-ratio: 9 \/ 16)  {\n                @media (min-aspect-ratio: 320 \/ 678) {\n                  amp-story-grid-layer.grid-layer {\n                    margin-top: calc((100% \/ 0.5625 - 100% \/ 0.6666666666666666) \/ 2);\n                  }\n                }\n              }<\/p>\n<p>              @media not all and (min-resolution:.001dpcm) {\n                @media {\n                  p.text-wrapper > span {\n                    font-size: calc(100% - 0.5px);\n                  }\n                }\n              }<\/p>\n<p>              .page-fullbleed-area,\n              .page-background-overlay-area {\n                position: absolute;\n                overflow: hidden;\n                width: 100%;\n                left: 0;\n                height: calc(1.1851851851851851 * 100%);\n                top: calc((1 - 1.1851851851851851) * 100% \/ 2);\n              }<\/p>\n<p>              .element-overlay-area {\n                position: absolute;\n                width: 100%;\n                height: 100%;\n                top: 0;\n                left: 0;\n              }<\/p>\n<p>              .page-safe-area {\n                overflow: visible;\n                position: absolute;\n                top: 0;\n                bottom: 0;\n                left: 0;\n                right: 0;\n                width: 100%;\n                height: calc(0.84375 * 100%);\n                margin: auto 0;\n              }<\/p>\n<p>              .mask {\n                position: absolute;\n                overflow: hidden;\n              }<\/p>\n<p>              .fill {\n                position: absolute;\n                top: 0;\n                left: 0;\n                right: 0;\n                bottom: 0;\n                margin: 0;\n              }<\/p>\n<p>              @media (prefers-reduced-motion: no-preference) {\n                .animation-wrapper {\n                  opacity: var(--initial-opacity);\n                  transform: var(--initial-transform);\n                }\n              }<\/p>\n<p>              amp-story-grid-layer.align-bottom {\n                align-content: end;\n                padding: 0;\n                \/* \n                  AMP CTA Layer will exactly occupy 74px regardless of any device.\n                  To space out captions 74px from the BOTTOM (AMP CTA Layer),\n                  74px from the TOP should also be spaced out and thus: 2 * 74px\n                  will be the desired max-height.\n                *\/\n                max-height: calc(100vh - (2 * 74px));\n              }<\/p>\n<p>              .captions-area {\n                padding: 0 32px 0;\n              }<\/p>\n<p>              amp-story-captions {\n                margin-bottom: 16px;\n                text-align: center;\n              }\n              <\/style>\n<p><meta name=\"web-stories-replace-head-start\"\/><title>Armstrong Numbers in Python<\/title><link rel=\"canonical\" href=\"https:\/\/pickl.ai\/blog\/?post_type=web-story&amp;p=7074\"\/><meta name=\"web-stories-replace-head-end\"\/><\/head><body><amp-story standalone=\"\" publisher=\"Pickl.AI\" publisher-logo-src=\"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2022\/01\/cropped-cropped-favicon.png\" title=\"Armstrong Numbers in Python\" poster-portrait-src=\"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/cropped-programming-background-with-person-working-with-codes-computer-scaled-1.jpg\"><amp-story-page id=\"98bbc53a-3a53-4cef-b176-5e74531e4287\" auto-advance-after=\"7s\"><amp-story-grid-layer template=\"vertical\" aspect-ratio=\"412:618\" class=\"grid-layer\"><\/p>\n<div class=\"page-fullbleed-area\" style=\"background-color:#d4e4c0\">\n<div class=\"page-safe-area\">\n<div style=\"position:absolute;pointer-events:none;left:0;top:-9.25926%;width:100%;height:118.51852%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0\" class=\"mask\" id=\"el-47d74841-a38e-4204-b916-ee4f4ab587da\">\n<div class=\"fill\" style=\"will-change:transform\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><\/amp-story-grid-layer><amp-story-grid-layer template=\"vertical\" aspect-ratio=\"412:618\" class=\"grid-layer\"><\/p>\n<div class=\"page-fullbleed-area\">\n<div class=\"page-safe-area\">\n<div style=\"position:absolute;pointer-events:none;left:13.1068%;top:53.07443%;width:75%;height:41.26214%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0\" class=\"mask\" id=\"el-feef8284-9593-40ce-9f25-9d32b8d64adf\">\n<div class=\"fill\" style=\"background-color:rgba(109,159,255,0.2);will-change:transform\"><\/div>\n<\/div>\n<\/div>\n<div style=\"position:absolute;pointer-events:none;left:15.04854%;top:54.69256%;width:70.14563%;height:45.30744%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0;border-radius:0.6920415224913495% 0.6920415224913495% 0.6920415224913495% 0.6920415224913495% \/ 0.7142857142857143% 0.7142857142857143% 0.7142857142857143% 0.7142857142857143%\" id=\"el-40d2c5a3-7746-4365-ace0-63bb4dc8fdf2\">\n<h1 id=\"armstrong-numbers-in-python\" class=\"fill text-wrapper\" style=\"white-space:pre-line;overflow-wrap:break-word;word-break:break-word;margin:-0.18501297577854564% 0;font-family:&quot;Roboto&quot;,&quot;Helvetica Neue&quot;,&quot;Helvetica&quot;,sans-serif;font-size:0.954693em;line-height:1.19;text-align:center;padding:0;color:#000000\"><span><span style=\"font-weight: 700; font-style: italic; color: #003250\">Armstrong Numbers in Python<\/span><\/span><\/h1>\n<\/div>\n<\/div>\n<div style=\"position:absolute;pointer-events:none;left:13.1068%;top:0;width:74.27184%;height:44.01294%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0\" class=\"mask\" id=\"el-34bf7fe6-9565-4f04-a989-1f1f4e468c12\">\n<div style=\"position:absolute;width:133.30729%;height:100%;left:-16.65365%;top:0%\" data-leaf-element=\"true\"><amp-img layout=\"fill\" src=\"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/programming-background-with-person-working-with-codes-computer-scaled.jpg\" alt=\"\" srcSet=\"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/programming-background-with-person-working-with-codes-computer-scaled.jpg 2560w,https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/programming-background-with-person-working-with-codes-computer-1024x683.jpg 1024w,https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/programming-background-with-person-working-with-codes-computer-300x200.jpg 300w\" sizes=\"(min-width: 1024px) 33vh, 74vw\" disable-inline-width=\"true\"><\/amp-img><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><\/amp-story-grid-layer><\/amp-story-page><amp-story-page id=\"a39d2d47-07b1-4879-ad1a-ad2610a506b9\" auto-advance-after=\"7s\"><amp-story-animation layout=\"nodisplay\" trigger=\"visibility\"><script type=\"application\/json\">[{\"selector\":\"#anim-1971aa39-74a5-4de0-b273-eae1c8d89ba0\",\"keyframes\":{\"opacity\":[0,1]},\"delay\":0,\"duration\":600,\"easing\":\"cubic-bezier(0.4, 0.4, 0.0, 1)\",\"fill\":\"both\"}]<\/script><\/amp-story-animation><amp-story-grid-layer template=\"vertical\" aspect-ratio=\"412:618\" class=\"grid-layer\"><\/p>\n<div class=\"page-fullbleed-area\" style=\"background-color:#eee\">\n<div class=\"page-safe-area\">\n<div style=\"position:absolute;pointer-events:none;left:0;top:-9.25926%;width:100%;height:118.51852%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0\" class=\"mask\" id=\"el-c2767272-8af0-4766-8ef8-26367e2411e3\">\n<div class=\"fill\" style=\"will-change:transform\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><\/amp-story-grid-layer><amp-story-grid-layer template=\"vertical\" aspect-ratio=\"412:618\" class=\"grid-layer\"><\/p>\n<div class=\"page-fullbleed-area\">\n<div class=\"page-safe-area\">\n<div style=\"position:absolute;pointer-events:none;left:8.98058%;top:45.46926%;width:83.25243%;height:13.26861%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0;border-radius:0.5830903790087464% 0.5830903790087464% 0.5830903790087464% 0.5830903790087464% \/ 2.4390243902439024% 2.4390243902439024% 2.4390243902439024% 2.4390243902439024%\" id=\"el-d8dc34e2-af2a-407d-88a7-cb24f1153255\">\n<h2 id=\"what-are-armstrong-numbers\" class=\"fill text-wrapper\" style=\"white-space:pre-line;overflow-wrap:break-word;word-break:break-word;margin:-0.09247448979591816% 0;font-family:&quot;Roboto&quot;,&quot;Helvetica Neue&quot;,&quot;Helvetica&quot;,sans-serif;font-size:0.566343em;line-height:1.19;text-align:center;padding:0;color:#000000\"><span><span style=\"font-weight: 700; color: #003250\">What are Armstrong Numbers?<\/span><\/span><\/h2>\n<\/div>\n<\/div>\n<div style=\"position:absolute;pointer-events:none;left:11.65049%;top:0;width:76.45631%;height:37.54045%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0\" class=\"mask\" id=\"el-e4483438-08a0-4f5d-ac70-6bc61988f296\">\n<div style=\"position:absolute;width:100%;height:135.77587%;left:0%;top:-17.88794%\" data-leaf-element=\"true\"><amp-img layout=\"fill\" src=\"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620.jpg\" alt=\"\" srcSet=\"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620.jpg 2000w,https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-1536x1536.jpg 1536w,https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-1024x1024.jpg 1024w,https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-768x768.jpg 768w,https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-300x300.jpg 300w,https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-150x150.jpg 150w,https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-96x96.jpg 96w\" sizes=\"(min-width: 1024px) 34vh, 76vw\" disable-inline-width=\"true\"><\/amp-img><\/div>\n<\/div>\n<\/div>\n<div style=\"position:absolute;pointer-events:none;left:11.8932%;top:63.43042%;width:77.18447%;height:23.94822%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0;border-radius:0.628930817610063% 0.628930817610063% 0.628930817610063% 0.628930817610063% \/ 1.3513513513513513% 1.3513513513513513% 1.3513513513513513% 1.3513513513513513%\" id=\"el-841ac2a7-f7b8-4d20-9487-4f3543c2ff3a\">\n<h3 id=\"armstrong-numbers-are-integers-where-the-sum-of-each-digit-raised-to-the-power-of-the-number-of-digits-is-equal-to-the-original-number\" class=\"fill text-wrapper\" style=\"white-space:pre-line;overflow-wrap:break-word;word-break:break-word;margin:0.6075471698113215% 0;font-family:&quot;Alegreya&quot;,serif;font-size:0.388350em;line-height:1.2;text-align:left;padding:0;color:#000000\"><span><span style=\"font-weight: 700; color: #1263ff\">Armstrong numbers are integers where the sum of each digit raised to the power of the number of digits is equal to the original number.<\/span><\/span><\/h3>\n<\/div>\n<\/div>\n<div style=\"position:absolute;pointer-events:none;left:33.00971%;top:92.0712%;width:34.70874%;height:5.01618%;opacity:1\">\n<div id=\"anim-1971aa39-74a5-4de0-b273-eae1c8d89ba0\" class=\"animation-wrapper\" style=\"width:100%;height:100%;display:block;position:absolute;top:0;left:0;--initial-opacity:0;--initial-transform:none\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0;border-radius:1.3986013986013985% 1.3986013986013985% 1.3986013986013985% 1.3986013986013985% \/ 6.451612903225806% 6.451612903225806% 6.451612903225806% 6.451612903225806%\" id=\"el-6f071e7b-c6a9-4dc8-85e5-731cd2d21b2b\"><a href=\"https:\/\/pickl.ai\/blog\/demystifying-armstrong-number-in-python-a-pythonic-exploration\/\" data-tooltip-icon=\"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/image1-4.png\" data-tooltip-text=\"Demystifying Armstrong Number in Python: A Pythonic Exploration\" target=\"_blank\" rel=\"noreferrer noopener\" style=\"width:100%;height:100%;display:block;position:absolute;top:0;left:0\"><\/p>\n<h3 id=\"learn-more\" class=\"fill text-wrapper\" style=\"white-space:pre-line;overflow-wrap:break-word;word-break:break-word;margin:-0.2556818181818179% 0;font-family:&quot;Roboto&quot;,&quot;Helvetica Neue&quot;,&quot;Helvetica&quot;,sans-serif;font-size:0.420712em;line-height:1.2;text-align:left;padding:0;color:#000000\"><span><span style=\"font-weight: 700\">Learn More<\/span><\/span><\/h3>\n<p><\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><\/amp-story-grid-layer><\/amp-story-page><amp-story-page id=\"79b667e8-1ffb-41f0-88cf-011dd410d8ea\" auto-advance-after=\"7s\"><amp-story-grid-layer template=\"vertical\" aspect-ratio=\"412:618\" class=\"grid-layer\"><\/p>\n<div class=\"page-fullbleed-area\" style=\"background-color:#ffffb7\">\n<div class=\"page-safe-area\">\n<div style=\"position:absolute;pointer-events:none;left:0;top:-9.25926%;width:100%;height:118.51852%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0\" class=\"mask\" id=\"el-a144ed89-5011-4201-a811-308dddba68b6\">\n<div class=\"fill\" style=\"will-change:transform\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><\/amp-story-grid-layer><amp-story-grid-layer template=\"vertical\" aspect-ratio=\"412:618\" class=\"grid-layer\"><\/p>\n<div class=\"page-fullbleed-area\">\n<div class=\"page-safe-area\">\n<div style=\"position:absolute;pointer-events:none;left:17.23301%;top:49.51456%;width:65.29126%;height:10.67961%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0;border-radius:0.7434944237918215% 0.7434944237918215% 0.7434944237918215% 0.7434944237918215% \/ 3.0303030303030303% 3.0303030303030303% 3.0303030303030303% 3.0303030303030303%\" id=\"el-bdb60f79-95b3-4026-804c-68862ba003f1\">\n<h1 id=\"example\" class=\"fill text-wrapper\" style=\"white-space:pre-line;overflow-wrap:break-word;word-break:break-word;margin:-0.18866171003717483% 0;font-family:&quot;Roboto&quot;,&quot;Helvetica Neue&quot;,&quot;Helvetica&quot;,sans-serif;font-size:0.906149em;line-height:1.19;text-align:center;padding:0;color:#000000\"><span><span style=\"font-weight: 700; text-decoration: underline; color: #003250\">Example<\/span><\/span><\/h1>\n<\/div>\n<\/div>\n<div style=\"position:absolute;pointer-events:none;left:11.65049%;top:0;width:76.45631%;height:37.54045%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0\" class=\"mask\" id=\"el-8307b31d-cad6-46ec-8535-97bea3e2c4c3\">\n<div style=\"position:absolute;width:110.49072%;height:100%;left:-5.24536%;top:0%\" data-leaf-element=\"true\"><amp-img layout=\"fill\" src=\"https:\/\/images.unsplash.com\/photo-1512314889357-e157c22f938d?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwzfHxpZGVhfGVufDB8fHx8MTcxMjU1ODc0OHww&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=3800&amp;h=2533&amp;fit=max\" alt=\"photo of bulb artwork\" srcSet=\"https:\/\/images.unsplash.com\/photo-1512314889357-e157c22f938d?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwzfHxpZGVhfGVufDB8fHx8MTcxMjU1ODc0OHww&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=3800&amp;h=2533&amp;fit=max 3800w,https:\/\/images.unsplash.com\/photo-1512314889357-e157c22f938d?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwzfHxpZGVhfGVufDB8fHx8MTcxMjU1ODc0OHww&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=3040&amp;h=2026&amp;fit=max 3040w,https:\/\/images.unsplash.com\/photo-1512314889357-e157c22f938d?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwzfHxpZGVhfGVufDB8fHx8MTcxMjU1ODc0OHww&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=2280&amp;h=1520&amp;fit=max 2280w,https:\/\/images.unsplash.com\/photo-1512314889357-e157c22f938d?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwzfHxpZGVhfGVufDB8fHx8MTcxMjU1ODc0OHww&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=1520&amp;h=1013&amp;fit=max 1520w,https:\/\/images.unsplash.com\/photo-1512314889357-e157c22f938d?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwzfHxpZGVhfGVufDB8fHx8MTcxMjU1ODc0OHww&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=760&amp;h=507&amp;fit=max 760w,https:\/\/images.unsplash.com\/photo-1512314889357-e157c22f938d?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwzfHxpZGVhfGVufDB8fHx8MTcxMjU1ODc0OHww&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=340&amp;h=227&amp;fit=max 340w\" sizes=\"(min-width: 1024px) 34vh, 76vw\" disable-inline-width=\"true\"><\/amp-img><\/div>\n<\/div>\n<\/div>\n<div style=\"position:absolute;pointer-events:none;left:11.65049%;top:67.1521%;width:79.85437%;height:16.18123%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0;border-radius:0.60790273556231% 0.60790273556231% 0.60790273556231% 0.60790273556231% \/ 2% 2% 2% 2%\" id=\"el-8a92797c-c35a-44f8-9cfd-2a8dd63ff4ec\">\n<h2 id=\"153-13-53-33-1-125-27-153\" class=\"fill text-wrapper\" style=\"white-space:pre-line;overflow-wrap:break-word;word-break:break-word;margin:0.9297872340425525% 0;font-family:&quot;Alegreya&quot;,serif;font-size:0.614887em;line-height:1.2;text-align:left;padding:0;color:#000000\"><span><span style=\"font-weight: 700; color: #ff9500\">153 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153<\/span><\/span><\/h2>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><\/amp-story-grid-layer><\/amp-story-page><amp-story-page id=\"33873cd7-aeed-4e3f-9f38-47a3ff2281c9\" auto-advance-after=\"7s\"><amp-story-animation layout=\"nodisplay\" trigger=\"visibility\"><script type=\"application\/json\">[{\"selector\":\"#anim-ce209b3a-d220-4b14-b1e7-3559ce7fd279\",\"keyframes\":{\"opacity\":[0,1]},\"delay\":0,\"duration\":600,\"easing\":\"cubic-bezier(0.4, 0.4, 0.0, 1)\",\"fill\":\"both\"}]<\/script><\/amp-story-animation><amp-story-grid-layer template=\"vertical\" aspect-ratio=\"412:618\" class=\"grid-layer\"><\/p>\n<div class=\"page-fullbleed-area\" style=\"background-color:#e0aaff\">\n<div class=\"page-safe-area\">\n<div style=\"position:absolute;pointer-events:none;left:0;top:-9.25926%;width:100%;height:118.51852%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0\" class=\"mask\" id=\"el-9f63431a-f0a6-4272-bab8-862f0c216201\">\n<div class=\"fill\" style=\"will-change:transform\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><\/amp-story-grid-layer><amp-story-grid-layer template=\"vertical\" aspect-ratio=\"412:618\" class=\"grid-layer\"><\/p>\n<div class=\"page-fullbleed-area\">\n<div class=\"page-safe-area\">\n<div style=\"position:absolute;pointer-events:none;left:15.04854%;top:38.02589%;width:70.14563%;height:6.79612%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0;border-radius:0.6920415224913495% 0.6920415224913495% 0.6920415224913495% 0.6920415224913495% \/ 4.761904761904762% 4.761904761904762% 4.761904761904762% 4.761904761904762%\" id=\"el-a6c88345-7049-491a-bb78-4d80d24b689d\">\n<h1 id=\"python-function\" class=\"fill text-wrapper\" style=\"white-space:pre-line;overflow-wrap:break-word;word-break:break-word;margin:-0.11288927335640075% 0;font-family:&quot;Roboto&quot;,&quot;Helvetica Neue&quot;,&quot;Helvetica&quot;,sans-serif;font-size:0.582524em;line-height:1.19;text-align:center;padding:0;color:#000000\"><span><span style=\"font-weight: 700; text-decoration: underline; color: #003250\">Python Function<\/span><\/span><\/h1>\n<\/div>\n<\/div>\n<div style=\"position:absolute;pointer-events:none;left:16.74757%;top:50.97087%;width:71.60194%;height:35.11327%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0;border-radius:0.6779661016949152% 0.6779661016949152% 0.6779661016949152% 0.6779661016949152% \/ 0.9216589861751152% 0.9216589861751152% 0.9216589861751152% 0.9216589861751152%\" id=\"el-2e42e86e-d3f4-4944-879e-ad0d7e52b9ec\">\n<h3 id=\"def-is_armstrongnumoriginal-numsum-0while-num-0digit-num-10sum-digit-lenstroriginalnum-10return-sum-original\" class=\"fill text-wrapper\" style=\"white-space:pre-line;overflow-wrap:break-word;word-break:break-word;margin:0.6003389830508478% 0;font-family:&quot;Alegreya&quot;,serif;font-size:0.355987em;line-height:1.2;text-align:left;padding:0;color:#000000\"><span><span style=\"font-weight: 700\">def is_armstrong(num):<\/span><br \/>\n<span style=\"font-weight: 700\">original = num<\/span><br \/>\n<span style=\"font-weight: 700\">sum = 0<\/span><br \/>\n<span style=\"font-weight: 700\">while num &gt; 0:<\/span><br \/>\n<span style=\"font-weight: 700\">digit = num % 10<\/span><br \/>\n<span style=\"font-weight: 700\">sum += digit ** len(str(original))<\/span><br \/>\n<span style=\"font-weight: 700\">num \/\/= 10<\/span><br \/>\n<span style=\"font-weight: 700\">return sum == original<\/span><\/span><\/h3>\n<\/div>\n<\/div>\n<div style=\"position:absolute;pointer-events:none;left:11.8932%;top:0;width:76.45631%;height:31.87702%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0\" class=\"mask\" id=\"el-baf16554-3f16-45a4-a033-567664d1d83c\">\n<div style=\"position:absolute;width:111.18165%;height:100%;left:-5.59082%;top:0%\" data-leaf-element=\"true\"><amp-img layout=\"fill\" src=\"https:\/\/images.unsplash.com\/photo-1526379095098-d400fd0bf935?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHw1fHxweXRob24lMjBmdW5jdGlvbnxlbnwwfHx8fDE3MTI1NTg5Nzd8MA&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=5472&amp;h=3078&amp;fit=max\" alt=\"person holding sticky note\" srcSet=\"https:\/\/images.unsplash.com\/photo-1526379095098-d400fd0bf935?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHw1fHxweXRob24lMjBmdW5jdGlvbnxlbnwwfHx8fDE3MTI1NTg5Nzd8MA&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=5472&amp;h=3078&amp;fit=max 5472w,https:\/\/images.unsplash.com\/photo-1526379095098-d400fd0bf935?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHw1fHxweXRob24lMjBmdW5jdGlvbnxlbnwwfHx8fDE3MTI1NTg5Nzd8MA&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=4377&amp;h=2462&amp;fit=max 4377w,https:\/\/images.unsplash.com\/photo-1526379095098-d400fd0bf935?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHw1fHxweXRob24lMjBmdW5jdGlvbnxlbnwwfHx8fDE3MTI1NTg5Nzd8MA&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=3283&amp;h=1847&amp;fit=max 3283w,https:\/\/images.unsplash.com\/photo-1526379095098-d400fd0bf935?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHw1fHxweXRob24lMjBmdW5jdGlvbnxlbnwwfHx8fDE3MTI1NTg5Nzd8MA&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=2188&amp;h=1231&amp;fit=max 2188w,https:\/\/images.unsplash.com\/photo-1526379095098-d400fd0bf935?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHw1fHxweXRob24lMjBmdW5jdGlvbnxlbnwwfHx8fDE3MTI1NTg5Nzd8MA&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=1094&amp;h=615&amp;fit=max 1094w,https:\/\/images.unsplash.com\/photo-1526379095098-d400fd0bf935?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHw1fHxweXRob24lMjBmdW5jdGlvbnxlbnwwfHx8fDE3MTI1NTg5Nzd8MA&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=340&amp;h=191&amp;fit=max 340w\" sizes=\"(min-width: 1024px) 34vh, 76vw\" disable-inline-width=\"true\"><\/amp-img><\/div>\n<\/div>\n<\/div>\n<div style=\"position:absolute;pointer-events:none;left:33.00971%;top:92.0712%;width:34.70874%;height:5.01618%;opacity:1\">\n<div id=\"anim-ce209b3a-d220-4b14-b1e7-3559ce7fd279\" class=\"animation-wrapper\" style=\"width:100%;height:100%;display:block;position:absolute;top:0;left:0;--initial-opacity:0;--initial-transform:none\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0;border-radius:1.3986013986013985% 1.3986013986013985% 1.3986013986013985% 1.3986013986013985% \/ 6.451612903225806% 6.451612903225806% 6.451612903225806% 6.451612903225806%\" id=\"el-c0f044bc-63ea-4064-9052-a6022073c719\"><a href=\"https:\/\/pickl.ai\/blog\/python-developer-framework\/\" data-tooltip-icon=\"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2023\/10\/Python-Developer-Framework.jpg\" data-tooltip-text=\"Python Developer Framework: A Comprehensive Guide\" target=\"_blank\" rel=\"noreferrer noopener\" style=\"width:100%;height:100%;display:block;position:absolute;top:0;left:0\"><\/p>\n<h3 id=\"learn-more-2\" class=\"fill text-wrapper\" style=\"white-space:pre-line;overflow-wrap:break-word;word-break:break-word;margin:-0.2556818181818179% 0;font-family:&quot;Roboto&quot;,&quot;Helvetica Neue&quot;,&quot;Helvetica&quot;,sans-serif;font-size:0.420712em;line-height:1.2;text-align:left;padding:0;color:#000000\"><span><span style=\"font-weight: 700\">Learn More<\/span><\/span><\/h3>\n<p><\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><\/amp-story-grid-layer><\/amp-story-page><amp-story-page id=\"c0b9b4d8-8428-46fc-92df-820ef4774917\" auto-advance-after=\"7s\"><amp-story-grid-layer template=\"vertical\" aspect-ratio=\"412:618\" class=\"grid-layer\"><\/p>\n<div class=\"page-fullbleed-area\" style=\"background-color:#eea299\">\n<div class=\"page-safe-area\">\n<div style=\"position:absolute;pointer-events:none;left:0;top:-9.25926%;width:100%;height:118.51852%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0\" class=\"mask\" id=\"el-3f08e013-7619-4cec-b11f-99a0cfe23a74\">\n<div class=\"fill\" style=\"will-change:transform\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><\/amp-story-grid-layer><amp-story-grid-layer template=\"vertical\" aspect-ratio=\"412:618\" class=\"grid-layer\"><\/p>\n<div class=\"page-fullbleed-area\">\n<div class=\"page-safe-area\">\n<div style=\"position:absolute;pointer-events:none;left:12.86408%;top:41.26214%;width:74.27184%;height:7.44337%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0;border-radius:0.6535947712418301% 0.6535947712418301% 0.6535947712418301% 0.6535947712418301% \/ 4.3478260869565215% 4.3478260869565215% 4.3478260869565215% 4.3478260869565215%\" id=\"el-7612b555-4161-4ae0-a32c-f1017896f13f\">\n<h1 id=\"explanation\" class=\"fill text-wrapper\" style=\"white-space:pre-line;overflow-wrap:break-word;word-break:break-word;margin:-0.11550245098039161% 0;font-family:&quot;Roboto&quot;,&quot;Helvetica Neue&quot;,&quot;Helvetica&quot;,sans-serif;font-size:0.631068em;line-height:1.19;text-align:center;padding:0;color:#000000\"><span><span style=\"font-weight: 700; text-decoration: underline; color: #ffe747\">Explanation<\/span><\/span><\/h1>\n<\/div>\n<\/div>\n<div style=\"position:absolute;pointer-events:none;left:16.99029%;top:54.36893%;width:70.14563%;height:42.55663%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0;border-radius:0.6920415224913495% 0.6920415224913495% 0.6920415224913495% 0.6920415224913495% \/ 0.7604562737642585% 0.7604562737642585% 0.7604562737642585% 0.7604562737642585%\" id=\"el-cbf3101b-9044-48dd-8ab1-b808821e0e6c\">\n<h3 id=\"1-we-define-a-function-is_armstrong-that-takes-a-number-as-input-2-we-store-the-original-number-and-initialize-a-sum-variable-3-we-loop-while-the-number-is-greater-than-0-4-inside-the-loop-we\" class=\"fill text-wrapper\" style=\"white-space:pre-line;overflow-wrap:break-word;word-break:break-word;margin:0.5849480968858132% 0;font-family:&quot;Alegreya&quot;,serif;font-size:0.339806em;line-height:1.2;text-align:left;padding:0;color:#000000\"><span><span style=\"font-weight: 700\">1. We define a function is_armstrong that takes a number as input.<\/span><br \/>\n<span style=\"font-weight: 700\">2. We store the original number and initialize a sum variable.<\/span><br \/>\n<span style=\"font-weight: 700\">3. We loop while the number is greater than 0.<\/span><br \/>\n<span style=\"font-weight: 700\">4. Inside the loop, we extract the last digit and add its power to the sum.<\/span><\/span><\/h3>\n<\/div>\n<\/div>\n<div style=\"position:absolute;pointer-events:none;left:11.65049%;top:0;width:76.45631%;height:35.59871%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0\" class=\"mask\" id=\"el-dc7d4a3b-5cb6-49ee-864c-e1cefb54889c\">\n<div style=\"position:absolute;width:100%;height:143.1818%;left:0%;top:-21.5909%\" data-leaf-element=\"true\"><amp-img layout=\"fill\" src=\"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471.jpg\" alt=\"20936097_6384471\" srcSet=\"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471.jpg 2000w,https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-1536x1536.jpg 1536w,https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-1024x1024.jpg 1024w,https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-768x768.jpg 768w,https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-300x300.jpg 300w,https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-150x150.jpg 150w,https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-96x96.jpg 96w\" sizes=\"(min-width: 1024px) 34vh, 76vw\" disable-inline-width=\"true\"><\/amp-img><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><\/amp-story-grid-layer><\/amp-story-page><amp-story-page id=\"56af24de-79fc-4c88-b648-7fe64fd10b7a\" auto-advance-after=\"7s\"><amp-story-grid-layer template=\"vertical\" aspect-ratio=\"412:618\" class=\"grid-layer\"><\/p>\n<div class=\"page-fullbleed-area\" style=\"background-color:#bc8a5f\">\n<div class=\"page-safe-area\">\n<div style=\"position:absolute;pointer-events:none;left:0;top:-9.25926%;width:100%;height:118.51852%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0\" class=\"mask\" id=\"el-6f352905-c96e-4f49-8369-b1a3264356f3\">\n<div class=\"fill\" style=\"will-change:transform\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><\/amp-story-grid-layer><amp-story-grid-layer template=\"vertical\" aspect-ratio=\"412:618\" class=\"grid-layer\"><\/p>\n<div class=\"page-fullbleed-area\">\n<div class=\"page-safe-area\">\n<div style=\"position:absolute;pointer-events:none;left:27.18447%;top:41.26214%;width:45.87379%;height:9.06149%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0;border-radius:1.0582010582010581% 1.0582010582010581% 1.0582010582010581% 1.0582010582010581% \/ 3.571428571428571% 3.571428571428571% 3.571428571428571% 3.571428571428571%\" id=\"el-7b26c871-d851-47e3-8e2e-329a6f70523d\">\n<h1 id=\"usage\" class=\"fill text-wrapper\" style=\"white-space:pre-line;overflow-wrap:break-word;word-break:break-word;margin:-0.2301587301587295% 0;font-family:&quot;Roboto&quot;,&quot;Helvetica Neue&quot;,&quot;Helvetica&quot;,sans-serif;font-size:0.776699em;line-height:1.19;text-align:center;padding:0;color:#000000\"><span><span style=\"font-weight: 700; text-decoration: underline; color: #fff\">Usage<\/span><\/span><\/h1>\n<\/div>\n<\/div>\n<div style=\"position:absolute;pointer-events:none;left:18.20388%;top:54.36893%;width:75.72816%;height:37.54045%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0;border-radius:0.641025641025641% 0.641025641025641% 0.641025641025641% 0.641025641025641% \/ 0.8620689655172413% 0.8620689655172413% 0.8620689655172413% 0.8620689655172413%\" id=\"el-3946ae74-e5ff-40a4-a750-0a7dcb529150\">\n<h2 id=\"number-153if-is_armstrongnumberprintnumber-is-an-armstrong-numberelseprintnumber-is-not-an-armstrong-number\" class=\"fill text-wrapper\" style=\"white-space:pre-line;overflow-wrap:break-word;word-break:break-word;margin:0.6966346153846157% 0;font-family:&quot;Alegreya&quot;,serif;font-size:0.436893em;line-height:1.2;text-align:left;padding:0;color:#000000\"><span><span style=\"font-weight: 700\">number = 153<\/span><br \/>\n<span style=\"font-weight: 700\">if is_armstrong(number):<\/span><br \/>\n<span style=\"font-weight: 700\">print(number, &#8220;is an Armstrong number&#8221;)<\/span><br \/>\n<span style=\"font-weight: 700\">else:<\/span><br \/>\n<span style=\"font-weight: 700\">print(number, &#8220;is not an Armstrong number&#8221;)<\/span><\/span><\/h2>\n<\/div>\n<\/div>\n<div style=\"position:absolute;pointer-events:none;left:12.62136%;top:0;width:74.27184%;height:35.59871%;opacity:1\">\n<div style=\"pointer-events:initial;width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:0\" class=\"mask\" id=\"el-ae6710d2-7e37-40ad-8baf-362820c19e72\">\n<div style=\"position:absolute;width:107.84316%;height:100%;left:-3.92158%;top:0%\" data-leaf-element=\"true\"><amp-img layout=\"fill\" src=\"https:\/\/images.unsplash.com\/photo-1587978834371-9494c5a02221?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwxfHx1c2FnZXxlbnwwfHx8fDE3MTI1NTk0NDl8MA&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=3999&amp;h=2666&amp;fit=max\" alt=\"person holding black android smartphone\" srcSet=\"https:\/\/images.unsplash.com\/photo-1587978834371-9494c5a02221?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwxfHx1c2FnZXxlbnwwfHx8fDE3MTI1NTk0NDl8MA&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=3999&amp;h=2666&amp;fit=max 3999w,https:\/\/images.unsplash.com\/photo-1587978834371-9494c5a02221?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwxfHx1c2FnZXxlbnwwfHx8fDE3MTI1NTk0NDl8MA&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=3199&amp;h=2133&amp;fit=max 3199w,https:\/\/images.unsplash.com\/photo-1587978834371-9494c5a02221?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwxfHx1c2FnZXxlbnwwfHx8fDE3MTI1NTk0NDl8MA&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=2399&amp;h=1599&amp;fit=max 2399w,https:\/\/images.unsplash.com\/photo-1587978834371-9494c5a02221?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwxfHx1c2FnZXxlbnwwfHx8fDE3MTI1NTk0NDl8MA&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=1599&amp;h=1066&amp;fit=max 1599w,https:\/\/images.unsplash.com\/photo-1587978834371-9494c5a02221?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwxfHx1c2FnZXxlbnwwfHx8fDE3MTI1NTk0NDl8MA&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=799&amp;h=533&amp;fit=max 799w,https:\/\/images.unsplash.com\/photo-1587978834371-9494c5a02221?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwxfHx1c2FnZXxlbnwwfHx8fDE3MTI1NTk0NDl8MA&amp;ixlib=rb-4.0.3&amp;fm=jpg&amp;w=340&amp;h=227&amp;fit=max 340w\" sizes=\"(min-width: 1024px) 33vh, 74vw\" disable-inline-width=\"true\"><\/amp-img><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><\/amp-story-grid-layer><\/amp-story-page><\/amp-story><\/body><\/html><\/p>\n","protected":false},"excerpt":{"rendered":"Learn how to use the Python programming language to determine whether a number is an Armstrong number. Learn Python programming like never before.\n","protected":false},"author":1,"featured_media":7078,"template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"web_stories_publisher_logo":935,"web_stories_poster":[],"web_stories_products":[],"footnotes":""},"web_story_category":[],"web_story_tag":[],"class_list":["post-7074","web-story","type-web-story","status-publish","has-post-thumbnail"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.3 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Armstrong Numbers in Python - Pickl.AI<\/title>\n<meta name=\"description\" content=\"Learn how to use the Python programming language to determine whether a number is an Armstrong number. Learn Python programming like never before.\" \/>\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.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Armstrong Numbers in Python\" \/>\n<meta property=\"og:description\" content=\"Learn how to use the Python programming language to determine whether a number is an Armstrong number. Learn Python programming like never before.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Pickl.AI\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-08T07:04:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/cropped-programming-background-with-person-working-with-codes-computer-scaled-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"640\" \/>\n\t<meta property=\"og:image:height\" content=\"853\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/web-stories\\\/armstrong-numbers-in-python\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/web-stories\\\/armstrong-numbers-in-python\\\/\"},\"author\":{\"name\":\"Admin\",\"@id\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/#\\\/schema\\\/person\\\/adfcccafe1795b39fe941ddafe76b6ab\"},\"headline\":\"Armstrong Numbers in Python\",\"datePublished\":\"2024-04-08T07:04:58+00:00\",\"dateModified\":\"2024-04-08T07:04:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/web-stories\\\/armstrong-numbers-in-python\\\/\"},\"wordCount\":135,\"image\":{\"@id\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/web-stories\\\/armstrong-numbers-in-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/cropped-programming-background-with-person-working-with-codes-computer-scaled-1.jpg\",\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/web-stories\\\/armstrong-numbers-in-python\\\/\",\"url\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/web-stories\\\/armstrong-numbers-in-python\\\/\",\"name\":\"Armstrong Numbers in Python - Pickl.AI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/web-stories\\\/armstrong-numbers-in-python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/web-stories\\\/armstrong-numbers-in-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/cropped-programming-background-with-person-working-with-codes-computer-scaled-1.jpg\",\"datePublished\":\"2024-04-08T07:04:58+00:00\",\"dateModified\":\"2024-04-08T07:04:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/web-stories\\\/armstrong-numbers-in-python\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/web-stories\\\/armstrong-numbers-in-python\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/web-stories\\\/armstrong-numbers-in-python\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/cropped-programming-background-with-person-working-with-codes-computer-scaled-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/cropped-programming-background-with-person-working-with-codes-computer-scaled-1.jpg\",\"width\":640,\"height\":853,\"caption\":\"programming-background-with-person-working-with-codes-computer\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/web-stories\\\/armstrong-numbers-in-python\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Stories\",\"item\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/web-stories\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Armstrong Numbers in Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/\",\"name\":\"Pickl.AI\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/#\\\/schema\\\/person\\\/adfcccafe1795b39fe941ddafe76b6ab\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/353a2bc4d584bc0705a194ad6cd03043005eae6d6f8ecfe3f0ef286d7d4d1dc8?s=96&d=mm&r=ga50c9c5ae9fb5534aba0f0b45ebbe6d3\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/353a2bc4d584bc0705a194ad6cd03043005eae6d6f8ecfe3f0ef286d7d4d1dc8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/353a2bc4d584bc0705a194ad6cd03043005eae6d6f8ecfe3f0ef286d7d4d1dc8?s=96&d=mm&r=g\",\"caption\":\"Admin\"},\"sameAs\":[\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/\"],\"url\":\"https:\\\/\\\/www.pickl.ai\\\/blog\\\/administrator\\\/transorgstandbyorangeironman\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Armstrong Numbers in Python - Pickl.AI","description":"Learn how to use the Python programming language to determine whether a number is an Armstrong number. Learn Python programming like never before.","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.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/","og_locale":"en_US","og_type":"article","og_title":"Armstrong Numbers in Python","og_description":"Learn how to use the Python programming language to determine whether a number is an Armstrong number. Learn Python programming like never before.","og_url":"https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/","og_site_name":"Pickl.AI","article_modified_time":"2024-04-08T07:04:59+00:00","og_image":[{"width":640,"height":853,"url":"https:\/\/www.pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/cropped-programming-background-with-person-working-with-codes-computer-scaled-1.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/#article","isPartOf":{"@id":"https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/"},"author":{"name":"Admin","@id":"https:\/\/www.pickl.ai\/blog\/#\/schema\/person\/adfcccafe1795b39fe941ddafe76b6ab"},"headline":"Armstrong Numbers in Python","datePublished":"2024-04-08T07:04:58+00:00","dateModified":"2024-04-08T07:04:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/"},"wordCount":135,"image":{"@id":"https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/cropped-programming-background-with-person-working-with-codes-computer-scaled-1.jpg","inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/","url":"https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/","name":"Armstrong Numbers in Python - Pickl.AI","isPartOf":{"@id":"https:\/\/www.pickl.ai\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/#primaryimage"},"image":{"@id":"https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/cropped-programming-background-with-person-working-with-codes-computer-scaled-1.jpg","datePublished":"2024-04-08T07:04:58+00:00","dateModified":"2024-04-08T07:04:59+00:00","breadcrumb":{"@id":"https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/#primaryimage","url":"https:\/\/www.pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/cropped-programming-background-with-person-working-with-codes-computer-scaled-1.jpg","contentUrl":"https:\/\/www.pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/cropped-programming-background-with-person-working-with-codes-computer-scaled-1.jpg","width":640,"height":853,"caption":"programming-background-with-person-working-with-codes-computer"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pickl.ai\/blog\/web-stories\/armstrong-numbers-in-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pickl.ai\/blog\/"},{"@type":"ListItem","position":2,"name":"Stories","item":"https:\/\/www.pickl.ai\/blog\/web-stories\/"},{"@type":"ListItem","position":3,"name":"Armstrong Numbers in Python"}]},{"@type":"WebSite","@id":"https:\/\/www.pickl.ai\/blog\/#website","url":"https:\/\/www.pickl.ai\/blog\/","name":"Pickl.AI","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pickl.ai\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.pickl.ai\/blog\/#\/schema\/person\/adfcccafe1795b39fe941ddafe76b6ab","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/353a2bc4d584bc0705a194ad6cd03043005eae6d6f8ecfe3f0ef286d7d4d1dc8?s=96&d=mm&r=ga50c9c5ae9fb5534aba0f0b45ebbe6d3","url":"https:\/\/secure.gravatar.com\/avatar\/353a2bc4d584bc0705a194ad6cd03043005eae6d6f8ecfe3f0ef286d7d4d1dc8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/353a2bc4d584bc0705a194ad6cd03043005eae6d6f8ecfe3f0ef286d7d4d1dc8?s=96&d=mm&r=g","caption":"Admin"},"sameAs":["https:\/\/www.pickl.ai\/blog\/"],"url":"https:\/\/www.pickl.ai\/blog\/administrator\/transorgstandbyorangeironman\/"}]}},"story_data":{"version":47,"pages":[{"elements":[{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"x":1,"y":1,"width":1,"height":1,"mask":{"type":"rectangle"},"isBackground":true,"isDefaultBackground":true,"type":"shape","id":"47d74841-a38e-4204-b916-ee4f4ab587da"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":false,"backgroundColor":{"color":{"r":109,"g":159,"b":255,"a":0.2}},"width":309,"height":255,"type":"shape","x":54,"y":328,"mask":{"type":"rectangle"},"id":"feef8284-9593-40ce-9f25-9d32b8d64adf"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundTextMode":"NONE","font":{"family":"Roboto"},"fontSize":59,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"lineHeight":1.19,"textAlign":"center","padding":{"locked":true,"hasHiddenPadding":false,"horizontal":0,"vertical":0},"content":"<span style=\"font-weight: 700; font-style: italic; color: #003250\">Armstrong Numbers in Python<\/span>","x":62,"y":338,"width":289,"borderRadius":{"locked":true,"topLeft":2,"topRight":2,"bottomRight":2,"bottomLeft":2},"type":"text","height":280,"id":"40d2c5a3-7746-4365-ace0-63bb4dc8fdf2","marginOffset":1.0693749999999937},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":false,"scale":100,"focalX":50,"focalY":50,"resource":{"type":"image","mimeType":"image\/jpeg","width":2560,"height":1707,"sizes":{"medium":{"file":"programming-background-with-person-working-with-codes-computer-300x200.jpg","width":300,"height":200,"filesize":38829,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/programming-background-with-person-working-with-codes-computer-300x200.jpg"},"large":{"file":"programming-background-with-person-working-with-codes-computer-1024x683.jpg","width":1024,"height":683,"filesize":167517,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/programming-background-with-person-working-with-codes-computer-1024x683.jpg"},"thumbnail":{"file":"programming-background-with-person-working-with-codes-computer-150x150.jpg","width":150,"height":150,"filesize":28237,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/programming-background-with-person-working-with-codes-computer-150x150.jpg"},"full":{"file":"programming-background-with-person-working-with-codes-computer-scaled.jpg","width":2560,"height":1707,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/programming-background-with-person-working-with-codes-computer-scaled.jpg"}},"isPlaceholder":false,"isExternal":false,"needsProxy":false,"baseColor":"#3e6a86","blurHash":"UE9*}zK-X9HqM^n~x]bwxZRjtRM{.TITjYn$","creationDate":"2024-04-08T06:31:31","src":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/programming-background-with-person-working-with-codes-computer-scaled.jpg","id":7076,"alt":"","local":false,"provider":"local"},"type":"image","x":54,"y":0,"width":306,"height":272,"mask":{"type":"rectangle","showInLibrary":true,"name":"Rectangle","path":"M 0,0 1,0 1,1 0,1 0,0 Z","ratio":1,"supportsBorder":true},"id":"34bf7fe6-9565-4f04-a989-1f1f4e468c12"}],"backgroundColor":{"color":{"r":212,"g":228,"b":192}},"id":"98bbc53a-3a53-4cef-b176-5e74531e4287"},{"elements":[{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"x":1,"y":1,"width":1,"height":1,"mask":{"type":"rectangle"},"isBackground":true,"isDefaultBackground":true,"id":"c2767272-8af0-4766-8ef8-26367e2411e3","type":"shape"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundTextMode":"NONE","font":{"family":"Roboto"},"fontSize":35,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"lineHeight":1.19,"textAlign":"center","padding":{"locked":true,"hasHiddenPadding":false,"horizontal":0,"vertical":0},"content":"<span style=\"font-weight: 700; color: #003250\">What are Armstrong Numbers?<\/span>","x":37,"y":281,"width":343,"borderRadius":{"locked":true,"topLeft":2,"topRight":2,"bottomRight":2,"bottomLeft":2},"height":82,"id":"d8dc34e2-af2a-407d-88a7-cb24f1153255","marginOffset":0.6343749999999986,"type":"text"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":false,"scale":100,"focalX":50,"focalY":50,"resource":{"type":"image","mimeType":"image\/jpeg","width":2000,"height":2000,"sizes":{"medium":{"file":"ORSD620-300x300.jpg","width":300,"height":300,"filesize":24559,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-300x300.jpg"},"large":{"file":"ORSD620-1024x1024.jpg","width":1024,"height":1024,"filesize":162317,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-1024x1024.jpg"},"thumbnail":{"file":"ORSD620-150x150.jpg","width":150,"height":150,"filesize":6520,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-150x150.jpg"},"medium_large":{"file":"ORSD620-768x768.jpg","width":768,"height":768,"filesize":108788,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-768x768.jpg"},"1536x1536":{"file":"ORSD620-1536x1536.jpg","width":1536,"height":1536,"filesize":281434,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-1536x1536.jpg"},"magine-hero":{"file":"ORSD620-1400x600.jpg","width":1400,"height":600,"filesize":108708,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-1400x600.jpg"},"magine-thumbnail":{"file":"ORSD620-900x600.jpg","width":900,"height":600,"filesize":90762,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-900x600.jpg"},"magine-vertical-thumbnail":{"file":"ORSD620-600x800.jpg","width":600,"height":800,"filesize":98339,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-600x800.jpg"},"web-stories-poster-portrait":{"file":"ORSD620-640x853.jpg","width":640,"height":853,"filesize":107361,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-640x853.jpg"},"web-stories-publisher-logo":{"file":"ORSD620-96x96.jpg","width":96,"height":96,"filesize":2706,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-96x96.jpg"},"web-stories-thumbnail":{"file":"ORSD620-150x150.jpg","width":150,"height":150,"filesize":6520,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620-150x150.jpg"},"full":{"file":"ORSD620.jpg","width":2000,"height":2000,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620.jpg"}},"isPlaceholder":false,"isExternal":false,"needsProxy":false,"baseColor":"#05060b","blurHash":"U00]wXofMaaye-f6o#kDaIaxtTW9ohfQV?j]","creationDate":"2024-04-08T06:38:52","src":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/ORSD620.jpg","id":7077,"alt":"","local":false,"provider":"local"},"type":"image","x":48,"y":0,"width":315,"height":232,"mask":{"type":"rectangle","showInLibrary":true,"name":"Rectangle","path":"M 0,0 1,0 1,1 0,1 0,0 Z","ratio":1,"supportsBorder":true},"id":"e4483438-08a0-4f5d-ac70-6bc61988f296"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundTextMode":"NONE","font":{"family":"Alegreya"},"fontSize":24,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"lineHeight":1.2,"textAlign":"left","padding":{"locked":true,"hasHiddenPadding":false,"horizontal":0,"vertical":0},"content":"<span style=\"font-weight: 700; color: #1263ff\">Armstrong numbers are integers where the sum of each digit raised to the power of the number of digits is equal to the original number.<\/span>","x":49,"y":392,"width":318,"borderRadius":{"locked":true,"topLeft":2,"topRight":2,"bottomRight":2,"bottomLeft":2},"type":"text","height":148,"id":"841ac2a7-f7b8-4d20-9487-4f3543c2ff3a","marginOffset":-4.024999999999999},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundTextMode":"NONE","font":{"family":"Roboto"},"fontSize":26,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"lineHeight":1.2,"textAlign":"left","padding":{"locked":true,"hasHiddenPadding":false,"horizontal":0,"vertical":0},"content":"<span style=\"font-weight: 700\">Learn More<\/span>","x":136,"y":569,"width":143,"borderRadius":{"locked":true,"topLeft":2,"topRight":2,"bottomRight":2,"bottomLeft":2},"type":"text","height":31,"id":"6f071e7b-c6a9-4dc8-85e5-731cd2d21b2b","marginOffset":0.7593749999999986,"link":{"needsProxy":false,"url":"https:\/\/pickl.ai\/blog\/demystifying-armstrong-number-in-python-a-pythonic-exploration\/","rel":[],"type":"regular","pageId":null,"icon":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/image1-4.png","desc":"Demystifying Armstrong Number in Python: A Pythonic Exploration"}}],"backgroundColor":{"color":{"r":238,"g":238,"b":238}},"animations":[{"id":"e9389134-3f63-43d5-b966-52baf5fcb1b1","type":"effect-fade-in","duration":600,"delay":0,"targets":["6f071e7b-c6a9-4dc8-85e5-731cd2d21b2b"]}],"id":"a39d2d47-07b1-4879-ad1a-ad2610a506b9"},{"elements":[{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"x":1,"y":1,"width":1,"height":1,"mask":{"type":"rectangle"},"isBackground":true,"isDefaultBackground":true,"id":"a144ed89-5011-4201-a811-308dddba68b6","type":"shape"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundTextMode":"NONE","font":{"family":"Roboto"},"fontSize":56,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"lineHeight":1.19,"textAlign":"center","padding":{"locked":true,"hasHiddenPadding":false,"horizontal":0,"vertical":0},"content":"<span style=\"font-weight: 700; text-decoration: underline; color: #003250\">Example<\/span>","x":71,"y":306,"width":269,"borderRadius":{"locked":true,"topLeft":2,"topRight":2,"bottomRight":2,"bottomLeft":2},"height":66,"id":"bdb60f79-95b3-4026-804c-68862ba003f1","marginOffset":1.0150000000000006,"type":"text"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":false,"scale":100,"focalX":50,"focalY":50,"resource":{"type":"image","mimeType":"image\/jpeg","width":3800,"height":2533,"sizes":{"full":{"file":"media\/unsplash:82TpEld0_e4","sourceUrl":"https:\/\/images.unsplash.com\/photo-1512314889357-e157c22f938d?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwzfHxpZGVhfGVufDB8fHx8MTcxMjU1ODc0OHww&ixlib=rb-4.0.3&fm=jpg&w=3800&h=2533&fit=max","mimeType":"image\/jpeg","width":3800,"height":2533},"large":{"file":"media\/unsplash:82TpEld0_e4","sourceUrl":"https:\/\/images.unsplash.com\/photo-1512314889357-e157c22f938d?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwzfHxpZGVhfGVufDB8fHx8MTcxMjU1ODc0OHww&ixlib=rb-4.0.3&fm=jpg&w=3040&h=2026&fit=max","mimeType":"image\/jpeg","width":3040,"height":2026},"2280_1520":{"file":"media\/unsplash:82TpEld0_e4","sourceUrl":"https:\/\/images.unsplash.com\/photo-1512314889357-e157c22f938d?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwzfHxpZGVhfGVufDB8fHx8MTcxMjU1ODc0OHww&ixlib=rb-4.0.3&fm=jpg&w=2280&h=1520&fit=max","mimeType":"image\/jpeg","width":2280,"height":1520},"1520_1013":{"file":"media\/unsplash:82TpEld0_e4","sourceUrl":"https:\/\/images.unsplash.com\/photo-1512314889357-e157c22f938d?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwzfHxpZGVhfGVufDB8fHx8MTcxMjU1ODc0OHww&ixlib=rb-4.0.3&fm=jpg&w=1520&h=1013&fit=max","mimeType":"image\/jpeg","width":1520,"height":1013},"760_507":{"file":"media\/unsplash:82TpEld0_e4","sourceUrl":"https:\/\/images.unsplash.com\/photo-1512314889357-e157c22f938d?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwzfHxpZGVhfGVufDB8fHx8MTcxMjU1ODc0OHww&ixlib=rb-4.0.3&fm=jpg&w=760&h=507&fit=max","mimeType":"image\/jpeg","width":760,"height":507},"web_stories_thumbnail":{"file":"media\/unsplash:82TpEld0_e4","sourceUrl":"https:\/\/images.unsplash.com\/photo-1512314889357-e157c22f938d?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwzfHxpZGVhfGVufDB8fHx8MTcxMjU1ODc0OHww&ixlib=rb-4.0.3&fm=jpg&w=340&h=227&fit=max","mimeType":"image\/jpeg","width":340,"height":227}},"isPlaceholder":false,"isExternal":true,"needsProxy":false,"id":"media\/unsplash:82TpEld0_e4","baseColor":"#a67340","blurHash":"LcMY#|~lRnR9?EoxWEjvH^R8kUtP","creationDate":"2017-12-03T15:31:13Z","src":"https:\/\/images.unsplash.com\/photo-1512314889357-e157c22f938d?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwzfHxpZGVhfGVufDB8fHx8MTcxMjU1ODc0OHww&ixlib=rb-4.0.3&fm=jpg&w=3800&h=2533&fit=max","alt":"photo of bulb artwork","attribution":{"author":{"displayName":"AbsolutVision","url":"https:\/\/unsplash.com\/@alterego_swiss?utm_source=web_stories_wordpress&utm_medium=referral"},"registerUsageUrl":"https:\/\/media3p.googleapis.com\/v1\/media:registerUsage?token=AZItapi9M9x6Ea6KV\/TLwEe5fNAL6qBjgMi8uQq8%2BeW4bAfCD98lpAd8xbFsHmAWry08zvLEiJed555BbzaZ2DM1VeW9ATzE6W%2BHy1vlCzXXIFCmLX8Nc4F11\/ykntmDSrdu8huzCTKhdcvGTLzzTyFHxzAY8y8G%2BE7hC9pqIOnFajRyv\/4wstfDPKnKZpTDreDLK\/pXtSUUTWzIY8LXMCjf5B62egnfxpYlwKPi4IA%3D"}},"x":48,"y":0,"width":315,"height":232,"mask":{"type":"rectangle","showInLibrary":true,"name":"Rectangle","path":"M 0,0 1,0 1,1 0,1 0,0 Z","ratio":1,"supportsBorder":true},"id":"8307b31d-cad6-46ec-8535-97bea3e2c4c3","type":"image"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundTextMode":"NONE","font":{"family":"Alegreya"},"fontSize":38,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"lineHeight":1.2,"textAlign":"left","padding":{"locked":true,"hasHiddenPadding":false,"horizontal":0,"vertical":0},"content":"<span style=\"font-weight: 700; color: #ff9500\">153 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153<\/span>","x":48,"y":415,"width":329,"borderRadius":{"locked":true,"topLeft":2,"topRight":2,"bottomRight":2,"bottomLeft":2},"height":100,"id":"8a92797c-c35a-44f8-9cfd-2a8dd63ff4ec","marginOffset":-6.2790000000000035,"type":"text"}],"backgroundColor":{"color":{"r":255,"g":255,"b":183}},"animations":[],"id":"79b667e8-1ffb-41f0-88cf-011dd410d8ea"},{"elements":[{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"x":1,"y":1,"width":1,"height":1,"mask":{"type":"rectangle"},"isBackground":true,"isDefaultBackground":true,"id":"9f63431a-f0a6-4272-bab8-862f0c216201","type":"shape"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundTextMode":"NONE","font":{"family":"Roboto"},"fontSize":36,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"lineHeight":1.19,"textAlign":"center","padding":{"locked":true,"hasHiddenPadding":false,"horizontal":0,"vertical":0},"content":"<span style=\"font-weight: 700; text-decoration: underline; color: #003250\">Python Function<\/span>","x":62,"y":235,"width":289,"borderRadius":{"locked":true,"topLeft":2,"topRight":2,"bottomRight":2,"bottomLeft":2},"height":42,"id":"a6c88345-7049-491a-bb78-4d80d24b689d","marginOffset":0.6706250000000011,"type":"text"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundTextMode":"NONE","font":{"family":"Alegreya"},"fontSize":22,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"lineHeight":1.2,"textAlign":"left","padding":{"locked":true,"hasHiddenPadding":false,"horizontal":0,"vertical":0},"content":"<span style=\"font-weight: 700\">def is_armstrong(num):<\/span>\n<span style=\"font-weight: 700\">original = num<\/span>\n<span style=\"font-weight: 700\">sum = 0<\/span>\n<span style=\"font-weight: 700\">while num &gt; 0:<\/span>\n<span style=\"font-weight: 700\">digit = num % 10<\/span>\n<span style=\"font-weight: 700\">sum += digit ** len(str(original))<\/span>\n<span style=\"font-weight: 700\">num \/\/= 10<\/span>\n<span style=\"font-weight: 700\">return sum == original<\/span>","x":69,"y":315,"width":295,"borderRadius":{"locked":true,"topLeft":2,"topRight":2,"bottomRight":2,"bottomLeft":2},"height":217,"id":"2e42e86e-d3f4-4944-879e-ad0d7e52b9ec","marginOffset":-3.5420000000000016,"type":"text"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":false,"scale":100,"focalX":50,"focalY":50,"resource":{"type":"image","mimeType":"image\/jpeg","width":5472,"height":3078,"sizes":{"full":{"file":"media\/unsplash:D9Zow2REm8U","sourceUrl":"https:\/\/images.unsplash.com\/photo-1526379095098-d400fd0bf935?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHw1fHxweXRob24lMjBmdW5jdGlvbnxlbnwwfHx8fDE3MTI1NTg5Nzd8MA&ixlib=rb-4.0.3&fm=jpg&w=5472&h=3078&fit=max","mimeType":"image\/jpeg","width":5472,"height":3078},"large":{"file":"media\/unsplash:D9Zow2REm8U","sourceUrl":"https:\/\/images.unsplash.com\/photo-1526379095098-d400fd0bf935?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHw1fHxweXRob24lMjBmdW5jdGlvbnxlbnwwfHx8fDE3MTI1NTg5Nzd8MA&ixlib=rb-4.0.3&fm=jpg&w=4377&h=2462&fit=max","mimeType":"image\/jpeg","width":4377,"height":2462},"3283_1847":{"file":"media\/unsplash:D9Zow2REm8U","sourceUrl":"https:\/\/images.unsplash.com\/photo-1526379095098-d400fd0bf935?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHw1fHxweXRob24lMjBmdW5jdGlvbnxlbnwwfHx8fDE3MTI1NTg5Nzd8MA&ixlib=rb-4.0.3&fm=jpg&w=3283&h=1847&fit=max","mimeType":"image\/jpeg","width":3283,"height":1847},"2188_1231":{"file":"media\/unsplash:D9Zow2REm8U","sourceUrl":"https:\/\/images.unsplash.com\/photo-1526379095098-d400fd0bf935?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHw1fHxweXRob24lMjBmdW5jdGlvbnxlbnwwfHx8fDE3MTI1NTg5Nzd8MA&ixlib=rb-4.0.3&fm=jpg&w=2188&h=1231&fit=max","mimeType":"image\/jpeg","width":2188,"height":1231},"1094_615":{"file":"media\/unsplash:D9Zow2REm8U","sourceUrl":"https:\/\/images.unsplash.com\/photo-1526379095098-d400fd0bf935?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHw1fHxweXRob24lMjBmdW5jdGlvbnxlbnwwfHx8fDE3MTI1NTg5Nzd8MA&ixlib=rb-4.0.3&fm=jpg&w=1094&h=615&fit=max","mimeType":"image\/jpeg","width":1094,"height":615},"web_stories_thumbnail":{"file":"media\/unsplash:D9Zow2REm8U","sourceUrl":"https:\/\/images.unsplash.com\/photo-1526379095098-d400fd0bf935?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHw1fHxweXRob24lMjBmdW5jdGlvbnxlbnwwfHx8fDE3MTI1NTg5Nzd8MA&ixlib=rb-4.0.3&fm=jpg&w=340&h=191&fit=max","mimeType":"image\/jpeg","width":340,"height":191}},"isPlaceholder":false,"isExternal":true,"needsProxy":false,"id":"media\/unsplash:D9Zow2REm8U","baseColor":"#0c2626","blurHash":"LUE.;9$e01D*?bi^s8s-IVRP-:%M","creationDate":"2018-05-15T10:12:10Z","src":"https:\/\/images.unsplash.com\/photo-1526379095098-d400fd0bf935?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHw1fHxweXRob24lMjBmdW5jdGlvbnxlbnwwfHx8fDE3MTI1NTg5Nzd8MA&ixlib=rb-4.0.3&fm=jpg&w=5472&h=3078&fit=max","alt":"person holding sticky note","attribution":{"author":{"displayName":"Hitesh Choudhary","url":"https:\/\/unsplash.com\/@hiteshchoudhary?utm_source=web_stories_wordpress&utm_medium=referral"},"registerUsageUrl":"https:\/\/media3p.googleapis.com\/v1\/media:registerUsage?token=AZItapjquJ1tvnlYO%2BWfgZ5mnYfwNhJRZQ6d188tD3JSYgmafcxybrZPm9pAXiGtTEOh5EGMjdEydIYYdZQUkZXTGwvkYuk6s3WKZnzV5leGroWLn3SxusztufUwxL2xkaRU9rdLzs1Vp52sJriZ1aXcPSryL\/ZBLN7DP8fEr%2BBTJsMoG6UwkZiaYezWIZisAeF9Uy6fu4dvn6nSTxJS0xuhXfMLFgjD\/F0jObA%2B3xjz2xPDHZvIn1X9A5Tl7s\/6hj0%3D"}},"type":"image","x":49,"y":0,"width":315,"height":197,"mask":{"type":"rectangle","showInLibrary":true,"name":"Rectangle","path":"M 0,0 1,0 1,1 0,1 0,0 Z","ratio":1,"supportsBorder":true},"id":"baf16554-3f16-45a4-a033-567664d1d83c"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundTextMode":"NONE","font":{"family":"Roboto"},"fontSize":26,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"lineHeight":1.2,"textAlign":"left","padding":{"locked":true,"hasHiddenPadding":false,"horizontal":0,"vertical":0},"content":"<span style=\"font-weight: 700\">Learn More<\/span>","x":136,"y":569,"width":143,"borderRadius":{"locked":true,"topLeft":2,"topRight":2,"bottomRight":2,"bottomLeft":2},"height":31,"id":"c0f044bc-63ea-4064-9052-a6022073c719","marginOffset":0.7593749999999986,"type":"text","link":{"needsProxy":false,"url":"https:\/\/pickl.ai\/blog\/python-developer-framework\/","rel":[],"type":"regular","pageId":null,"icon":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2023\/10\/Python-Developer-Framework.jpg","desc":"Python Developer Framework: A Comprehensive Guide"}}],"backgroundColor":{"color":{"r":224,"g":170,"b":255}},"animations":[{"id":"7e537ae9-91fd-4767-8d0e-cd4a37179ccf","type":"effect-fade-in","duration":600,"delay":0,"targets":["c0f044bc-63ea-4064-9052-a6022073c719"]}],"id":"33873cd7-aeed-4e3f-9f38-47a3ff2281c9"},{"elements":[{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"x":1,"y":1,"width":1,"height":1,"mask":{"type":"rectangle"},"isBackground":true,"isDefaultBackground":true,"id":"3f08e013-7619-4cec-b11f-99a0cfe23a74","type":"shape"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundTextMode":"NONE","font":{"family":"Roboto"},"fontSize":39,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"lineHeight":1.19,"textAlign":"center","padding":{"locked":true,"hasHiddenPadding":false,"horizontal":0,"vertical":0},"content":"<span style=\"font-weight: 700; text-decoration: underline; color: #ffe747\">Explanation<\/span>","x":53,"y":255,"width":306,"borderRadius":{"locked":true,"topLeft":2,"topRight":2,"bottomRight":2,"bottomLeft":2},"height":46,"id":"7612b555-4161-4ae0-a32c-f1017896f13f","marginOffset":0.7068749999999966,"type":"text"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundTextMode":"NONE","font":{"family":"Alegreya"},"fontSize":21,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"lineHeight":1.2,"textAlign":"left","padding":{"locked":true,"hasHiddenPadding":false,"horizontal":0,"vertical":0},"content":"<span style=\"font-weight: 700\">1. We define a function is_armstrong that takes a number as input.<\/span>\n<span style=\"font-weight: 700\">2. We store the original number and initialize a sum variable.<\/span>\n<span style=\"font-weight: 700\">3. We loop while the number is greater than 0.<\/span>\n<span style=\"font-weight: 700\">4. Inside the loop, we extract the last digit and add its power to the sum.<\/span>","x":70,"y":336,"width":289,"borderRadius":{"locked":true,"topLeft":2,"topRight":2,"bottomRight":2,"bottomLeft":2},"height":263,"id":"cbf3101b-9044-48dd-8ab1-b808821e0e6c","marginOffset":-3.5420000000000016,"type":"text"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":false,"scale":100,"focalX":50,"focalY":50,"resource":{"type":"image","mimeType":"image\/jpeg","width":2000,"height":2000,"sizes":{"medium":{"file":"20936097_6384471-300x300.jpg","width":300,"height":300,"filesize":17943,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-300x300.jpg"},"large":{"file":"20936097_6384471-1024x1024.jpg","width":1024,"height":1024,"filesize":92944,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-1024x1024.jpg"},"thumbnail":{"file":"20936097_6384471-150x150.jpg","width":150,"height":150,"filesize":7081,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-150x150.jpg"},"medium_large":{"file":"20936097_6384471-768x768.jpg","width":768,"height":768,"filesize":64305,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-768x768.jpg"},"1536x1536":{"file":"20936097_6384471-1536x1536.jpg","width":1536,"height":1536,"filesize":158308,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-1536x1536.jpg"},"magine-hero":{"file":"20936097_6384471-1400x600.jpg","width":1400,"height":600,"filesize":77425,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-1400x600.jpg"},"magine-thumbnail":{"file":"20936097_6384471-900x600.jpg","width":900,"height":600,"filesize":66366,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-900x600.jpg"},"magine-vertical-thumbnail":{"file":"20936097_6384471-600x800.jpg","width":600,"height":800,"filesize":61403,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-600x800.jpg"},"web-stories-poster-portrait":{"file":"20936097_6384471-640x853.jpg","width":640,"height":853,"filesize":66561,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-640x853.jpg"},"web-stories-publisher-logo":{"file":"20936097_6384471-96x96.jpg","width":96,"height":96,"filesize":3704,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-96x96.jpg"},"web-stories-thumbnail":{"file":"20936097_6384471-150x150.jpg","width":150,"height":150,"filesize":7081,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471-150x150.jpg"},"full":{"file":"20936097_6384471.jpg","width":2000,"height":2000,"mimeType":"image\/jpeg","sourceUrl":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471.jpg"}},"isPlaceholder":false,"isExternal":false,"needsProxy":false,"baseColor":"#62602f","blurHash":"UGQS^[_N^+R4-=Ip-;WBtnD*-;oyE3-NM{kX","creationDate":"2024-03-27T09:27:25","src":"https:\/\/pickl.ai\/blog\/wp-content\/uploads\/2024\/03\/20936097_6384471.jpg","id":6937,"alt":"20936097_6384471","local":false},"type":"image","x":48,"y":0,"width":315,"height":220,"mask":{"type":"rectangle","showInLibrary":true,"name":"Rectangle","path":"M 0,0 1,0 1,1 0,1 0,0 Z","ratio":1,"supportsBorder":true},"id":"dc7d4a3b-5cb6-49ee-864c-e1cefb54889c"}],"backgroundColor":{"color":{"r":238,"g":162,"b":153}},"animations":[],"id":"c0b9b4d8-8428-46fc-92df-820ef4774917"},{"elements":[{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"x":1,"y":1,"width":1,"height":1,"mask":{"type":"rectangle"},"isBackground":true,"isDefaultBackground":true,"id":"6f352905-c96e-4f49-8369-b1a3264356f3","type":"shape"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundTextMode":"NONE","font":{"family":"Roboto"},"fontSize":48,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"lineHeight":1.19,"textAlign":"center","padding":{"locked":true,"hasHiddenPadding":false,"horizontal":0,"vertical":0},"content":"<span style=\"font-weight: 700; text-decoration: underline; color: #fff\">Usage<\/span>","x":112,"y":255,"width":189,"borderRadius":{"locked":true,"topLeft":2,"topRight":2,"bottomRight":2,"bottomLeft":2},"height":56,"id":"7b26c871-d851-47e3-8e2e-329a6f70523d","marginOffset":0.8881249999999952,"type":"text"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":true,"backgroundTextMode":"NONE","font":{"family":"Alegreya"},"fontSize":27,"backgroundColor":{"color":{"r":196,"g":196,"b":196}},"lineHeight":1.2,"textAlign":"left","padding":{"locked":true,"hasHiddenPadding":false,"horizontal":0,"vertical":0},"content":"<span style=\"font-weight: 700\">number = 153<\/span>\n<span style=\"font-weight: 700\">if is_armstrong(number):<\/span>\n<span style=\"font-weight: 700\">print(number, \"is an Armstrong number\")<\/span>\n<span style=\"font-weight: 700\">else:<\/span>\n<span style=\"font-weight: 700\">print(number, \"is not an Armstrong number\")<\/span>","x":75,"y":336,"width":312,"borderRadius":{"locked":true,"topLeft":2,"topRight":2,"bottomRight":2,"bottomLeft":2},"height":232,"id":"3946ae74-e5ff-40a4-a750-0a7dcb529150","marginOffset":-4.347000000000001,"type":"text"},{"opacity":100,"flip":{"vertical":false,"horizontal":false},"rotationAngle":0,"lockAspectRatio":false,"scale":100,"focalX":50,"focalY":50,"resource":{"type":"image","mimeType":"image\/jpeg","width":3999,"height":2666,"sizes":{"full":{"file":"media\/unsplash:cpdX2eedmiw","sourceUrl":"https:\/\/images.unsplash.com\/photo-1587978834371-9494c5a02221?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwxfHx1c2FnZXxlbnwwfHx8fDE3MTI1NTk0NDl8MA&ixlib=rb-4.0.3&fm=jpg&w=3999&h=2666&fit=max","mimeType":"image\/jpeg","width":3999,"height":2666},"large":{"file":"media\/unsplash:cpdX2eedmiw","sourceUrl":"https:\/\/images.unsplash.com\/photo-1587978834371-9494c5a02221?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwxfHx1c2FnZXxlbnwwfHx8fDE3MTI1NTk0NDl8MA&ixlib=rb-4.0.3&fm=jpg&w=3199&h=2133&fit=max","mimeType":"image\/jpeg","width":3199,"height":2133},"2399_1599":{"file":"media\/unsplash:cpdX2eedmiw","sourceUrl":"https:\/\/images.unsplash.com\/photo-1587978834371-9494c5a02221?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwxfHx1c2FnZXxlbnwwfHx8fDE3MTI1NTk0NDl8MA&ixlib=rb-4.0.3&fm=jpg&w=2399&h=1599&fit=max","mimeType":"image\/jpeg","width":2399,"height":1599},"1599_1066":{"file":"media\/unsplash:cpdX2eedmiw","sourceUrl":"https:\/\/images.unsplash.com\/photo-1587978834371-9494c5a02221?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwxfHx1c2FnZXxlbnwwfHx8fDE3MTI1NTk0NDl8MA&ixlib=rb-4.0.3&fm=jpg&w=1599&h=1066&fit=max","mimeType":"image\/jpeg","width":1599,"height":1066},"799_533":{"file":"media\/unsplash:cpdX2eedmiw","sourceUrl":"https:\/\/images.unsplash.com\/photo-1587978834371-9494c5a02221?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwxfHx1c2FnZXxlbnwwfHx8fDE3MTI1NTk0NDl8MA&ixlib=rb-4.0.3&fm=jpg&w=799&h=533&fit=max","mimeType":"image\/jpeg","width":799,"height":533},"web_stories_thumbnail":{"file":"media\/unsplash:cpdX2eedmiw","sourceUrl":"https:\/\/images.unsplash.com\/photo-1587978834371-9494c5a02221?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwxfHx1c2FnZXxlbnwwfHx8fDE3MTI1NTk0NDl8MA&ixlib=rb-4.0.3&fm=jpg&w=340&h=227&fit=max","mimeType":"image\/jpeg","width":340,"height":227}},"isPlaceholder":false,"isExternal":true,"needsProxy":false,"id":"media\/unsplash:cpdX2eedmiw","baseColor":"#d9c0c0","blurHash":"LKOMjS~q,:K5%fMwt8a#IAtRtRM{","creationDate":"2020-04-27T09:19:00Z","src":"https:\/\/images.unsplash.com\/photo-1587978834371-9494c5a02221?ixid=M3wxMzcxOTN8MHwxfHNlYXJjaHwxfHx1c2FnZXxlbnwwfHx8fDE3MTI1NTk0NDl8MA&ixlib=rb-4.0.3&fm=jpg&w=3999&h=2666&fit=max","alt":"person holding black android smartphone","attribution":{"author":{"displayName":"Markus Winkler","url":"https:\/\/unsplash.com\/@markuswinkler?utm_source=web_stories_wordpress&utm_medium=referral"},"registerUsageUrl":"https:\/\/media3p.googleapis.com\/v1\/media:registerUsage?token=AZItaphFZsMlDkG3b7UpCzxUikh6aatVdb3EsLqnWutjrrnFgUqISM4gA2iqXB7zbpSHlzUtfqDK3lYEXVn%2B7gA2XexbklYmG3FywhlTVDVoDDVTiXX5SwSx%2B3Yk\/80b2T3MvvaLC\/6bm4CAt6Vv\/HHkPZFEZK3VTaepdP513UhdIZ\/hjd5WoWS9egkLxAyJQCj8UfHIZ05IVuWFF8irxeos2%2Bg4lWzMpDMG9%2BGxs0l9jA%3D%3D"}},"type":"image","x":52,"y":0,"width":306,"height":220,"mask":{"type":"rectangle","showInLibrary":true,"name":"Rectangle","path":"M 0,0 1,0 1,1 0,1 0,0 Z","ratio":1,"supportsBorder":true},"id":"ae6710d2-7e37-40ad-8baf-362820c19e72"}],"backgroundColor":{"color":{"r":188,"g":138,"b":95}},"animations":[],"id":"56af24de-79fc-4c88-b648-7fe64fd10b7a"}],"fonts":{"Roboto":{"family":"Roboto","weights":[100,300,400,500,700,900],"styles":["italic","regular"],"variants":[[0,100],[1,100],[0,300],[1,300],[0,400],[1,400],[0,500],[1,500],[0,700],[1,700],[0,900],[1,900]],"fallbacks":["Helvetica Neue","Helvetica","sans-serif"],"service":"fonts.google.com","metrics":{"upm":2048,"asc":1900,"des":-500,"tAsc":1536,"tDes":-512,"tLGap":102,"wAsc":1946,"wDes":512,"xH":1082,"capH":1456,"yMin":-555,"yMax":2163,"hAsc":1900,"hDes":-500,"lGap":0}},"Alegreya":{"family":"Alegreya","fallbacks":["serif"],"weights":[400,500,600,700,800,900],"styles":["regular","italic"],"variants":[[0,400],[0,500],[0,600],[0,700],[0,800],[0,900],[1,400],[1,500],[1,600],[1,700],[1,800],[1,900]],"service":"fonts.google.com","metrics":{"upm":1000,"asc":1016,"des":-345,"tAsc":1016,"tDes":-345,"tLGap":0,"wAsc":1123,"wDes":345,"xH":452,"capH":637,"yMin":-293,"yMax":962,"hAsc":1016,"hDes":-345,"lGap":0}}},"autoAdvance":true,"defaultPageDuration":7,"currentStoryStyles":{"colors":[]}},"story_poster":{"id":7078,"url":"https:\/\/www.pickl.ai\/blog\/wp-content\/uploads\/2024\/04\/cropped-programming-background-with-person-working-with-codes-computer-scaled-1.jpg","width":640,"height":853,"needsProxy":false},"_links":{"self":[{"href":"https:\/\/www.pickl.ai\/blog\/wp-json\/web-stories\/v1\/web-story\/7074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pickl.ai\/blog\/wp-json\/web-stories\/v1\/web-story"}],"about":[{"href":"https:\/\/www.pickl.ai\/blog\/wp-json\/wp\/v2\/types\/web-story"}],"author":[{"embeddable":true,"href":"https:\/\/www.pickl.ai\/blog\/wp-json\/web-stories\/v1\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/www.pickl.ai\/blog\/wp-json\/web-stories\/v1\/web-story\/7074\/revisions"}],"predecessor-version":[{"id":7079,"href":"https:\/\/www.pickl.ai\/blog\/wp-json\/web-stories\/v1\/web-story\/7074\/revisions\/7079"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pickl.ai\/blog\/wp-json\/web-stories\/v1\/media\/7078"}],"wp:attachment":[{"href":"https:\/\/www.pickl.ai\/blog\/wp-json\/web-stories\/v1\/media?parent=7074"}],"wp:term":[{"taxonomy":"web_story_category","embeddable":true,"href":"https:\/\/www.pickl.ai\/blog\/wp-json\/web-stories\/v1\/web_story_category?post=7074"},{"taxonomy":"web_story_tag","embeddable":true,"href":"https:\/\/www.pickl.ai\/blog\/wp-json\/web-stories\/v1\/web_story_tag?post=7074"}],"wp:lock":[{"embeddable":true,"href":"https:\/\/www.pickl.ai\/blog\/wp-json\/web-stories\/v1\/web-story\/7074\/lock"}],"wp:publisherlogo":[{"embeddable":true,"href":"https:\/\/www.pickl.ai\/blog\/wp-json\/web-stories\/v1\/media\/935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}