{"id":25543996,"date":"2022-10-18T15:00:49","date_gmt":"2022-10-18T09:30:49","guid":{"rendered":"https:\/\/entri.app\/blog\/?p=25543996"},"modified":"2023-11-27T10:39:56","modified_gmt":"2023-11-27T05:09:56","slug":"what-is-an-armstrong-number-armstrong-number-program-in-python","status":"publish","type":"post","link":"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/","title":{"rendered":"Python Program to Check Armstrong Number"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_79_2 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e15c13a0b62\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e15c13a0b62\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#What_is_an_Armstrong_Number\" >What is an Armstrong Number?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#Armstrong_Number_Logic\" >Armstrong Number Logic<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#Armstrong_Number_Algorithm\" >Armstrong Number Algorithm<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#Python_Program_To_Check_Armstrong_Number\" >Python Program To Check Armstrong Number<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#Program_To_Find_All_The_Armstrong_Numbers_Between_0_and_999\" >Program To Find All The Armstrong Numbers Between 0 and 999<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"What_is_an_Armstrong_Number\"><\/span><strong>What is an Armstrong Number?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>According to mathematical number theory, the Armstrong number is any number that, when each of its digits is raised to the power of the number of digits in the number, generates the sum of the same number in every given number base.\u00a0 Using the decimal system and the basic number 153 as an example, we can observe that it has 3 digits. By performing the straightforward mathematical procedure of increasing each of its digits to the power of three and then adding the resultant sum, we arrive at the number 153. That is 1 to the power of 3; 5 to the power of 3 times 3 times three equals 1 125 27 153. Additionally, this may be written as 13 53 33=153.<\/p>\n<h2><a href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-25522670 size-full\" src=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1.png\" alt=\"Python and Machine Learning Rectangle\" width=\"970\" height=\"250\" srcset=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1.png 970w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1-300x77.png 300w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1-768x198.png 768w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1-750x193.png 750w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/a><\/h2>\n<h2 id=\"Armstrong-Number-Logic\" class=\"has-vivid-cyan-blue-color has-text-color\"><span class=\"ez-toc-section\" id=\"Armstrong_Number_Logic\"><\/span><span style=\"color: #000000;\"><strong>Armstrong Number Logic<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>One must keep in mind that the Armstrong number characteristic holds true in all number systems in order to comprehend the logic of Armstrong nos. Take the six-digit number 548834 and check to see if it fits the Armstrong numbers property. Use the formula<\/p>\n<p>5^6 4^6 8^6 8^6 3^6 4^6 =? Determine the amount by increasing each number to the power of six, then add the terms to determine the total. The sum, which is the actual number itself, is 548834. As a result, 548834 is an Armstrong number since it is the same when the individual terms of the number&#8217;s digits are added and raised to the power of the number&#8217;s digits. Consider the number 122 to see what Armstrong&#8217;s number is. Use the base-3 operation 13 23 23=17 to determine if 122 is an Armstrong no. The calculation is the same in base 3 as 2*1 2*3 1*9=17. It&#8217;s crucial to keep in mind that 3 to the power of 0 equals 1, 3 to the power of 1 equals 3, and 3 to the power of 2 equals 9. When adding all the words, we get 17. This means that, in any number system, an Armstrong number can display the same feature.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\"><strong>\u00a0<a class=\"btn btn-default\" href=\"https:\/\/entri.app\/course\/python-programming-course\/\">learn to code like an expert ! enroll now !<\/a><\/strong><\/a><\/p>\n<h2 id=\"Armstrong-Number-Logic\" class=\"has-vivid-cyan-blue-color has-text-color\"><span class=\"ez-toc-section\" id=\"Armstrong_Number_Algorithm\"><\/span><span style=\"color: #000000;\"><strong>Armstrong Number <\/strong><strong>Algorithm<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>An Armstrong number algorithm uses two parameters to implement and validate the characteristic of what an Armstrong number is. The number of digits in the number is the first parameter in Armstrong number logic, and the second parameter is the sum of the terms when each digit is raised to the power of the number&#8217;s digits. For a better understanding, consider the Armstrong number algorithm:<\/p>\n<p>Here are the 8 steps involved in a\u00a0program for Armstrong number.<\/p>\n<p>1. The number of digits in num is determined and found out.<\/p>\n<p>2. The\u00a0sum of digits of a number in Python\u00a0or individual digit sums are got by performing num mod 10, where mod is called the remainder operation.<\/p>\n<p>3. The individual digit is then raised to the power (number of digits) and stored.<\/p>\n<p>4. The number is then divided by 10 in order to obtain the second digit.<\/p>\n<p>5. All the above 3-steps numbered Steps 2, 3 and 4 are performed until the value of num is greater than 0.<\/p>\n<p>6. When the num is less than 0, end the while loop.<\/p>\n<p>7. Check the sum obtained or\u00a0Armstrong value\u00a0is the same as the original number<\/p>\n<p>8. When yes, the number is labeled an Armstrong number<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\"><strong>Python Programming Course in Different Cities<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/entri.app\/course\/python-training-course-in-trivandrum\/\"><strong>Python Training in Trivandrum | Learn Python Course in Trivandrum<\/strong><\/a><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/entri.app\/course\/python-training-course-in-kochi\/\"><strong>Python Training in Kochi | Learn Python Programming Online<\/strong><\/a><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/entri.app\/course\/python-training-course-in-calicut\/\"><strong>Python Training in Calicut | Learn Python Programming Online in Kozhikode<\/strong><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 class=\"has-vivid-cyan-blue-color has-text-color\"><span class=\"ez-toc-section\" id=\"Python_Program_To_Check_Armstrong_Number\"><\/span><span style=\"color: #000000;\"><strong>Python Program To Check <\/strong><strong>Armstrong Number<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Implementing the aforementioned procedure in Python as shown below will help you understand what the Armstrong number is in Python.<\/p>\n<p>num= int(input(\u2018Enter a number: \u2018))<\/p>\n<p>num_original =num2=num<\/p>\n<p>sum1 = 0<\/p>\n<p>cnt=0<\/p>\n<p>while(num&gt;0):<\/p>\n<p>cnt=cnt 1<\/p>\n<p>num=num\/\/10<\/p>\n<p>while num2&gt;0:<\/p>\n<p>rem = num2% 10<\/p>\n<p>sum1\u00a0 = rem ** cnt<\/p>\n<p>num2\/\/= 10<\/p>\n<p>if(num_original==sum1):<\/p>\n<p>print(\u2018Armstrong!!\u2019)<\/p>\n<p>else:<\/p>\n<p>print(\u2018Not Armstrong!\u2019)<\/p>\n<p>Output<\/p>\n<p>Now in the field \u2018Enter a number, enter the Armstrong number in python or number: 153. The output shows Armstrong number Python \u2018Armstrong\u2019.\u00a0\u00a0Next try the algorithm with the field \u2018Enter a number as 134 or Enter a number: 134. The output this time is, Not Armstrong!<\/p>\n<p>To test the code, keep in mind that num original keeps the initial value of the input, whereas num stores the number of digits in the input. Sum 1=0 and cnt=0 are equivalent to 1 Armstrong. One may calculate the sum of each digit in the starting number raised to the power of the count variable using the variable num 2. Next, compare the original and sum to check if the original number displays the characteristics of an Armstrong number according to the Python Armstrong number program.<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center;\" colspan=\"3\">\n<h5><span style=\"color: #ffffff;\"><strong>Are you aspiring for a booming career in IT? If YES, then dive in<\/strong><\/span><\/h5>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<h5><a href=\"https:\/\/entri.app\/course\/full-stack-developer-course\/\"><strong>Full Stack Developer Course<\/strong><\/a><\/h5>\n<\/td>\n<td>\n<h5><a href=\"https:\/\/entri.app\/course\/python-programming-course\/\"><strong>Python Programming Course<\/strong><\/a><\/h5>\n<\/td>\n<td>\n<h5><a href=\"https:\/\/entri.app\/course\/data-science-and-machine-learning-course\/\"><strong>Data Science and Machine Learning Course<\/strong><\/a><\/h5>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span class=\"ez-toc-section\" id=\"Program_To_Find_All_The_Armstrong_Numbers_Between_0_and_999\"><\/span><b>Program To Find All The <\/b><strong>Armstrong Numbers <\/strong><b>Between 0 and 999<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The Armstrong numbers list produced by this application ranges from 0 to 999. A number is said to be Armstrong if the sum of its digits raised to the power of three equals the number itself. For instance, the number 371 is an Armstrong number as 3**3 + 7**3 + 1**3 = 371<\/p>\n<p>PROGRAM\u00a0 ArmstrongNumber<\/p>\n<p>IMPLICIT\u00a0 NONE<\/p>\n<p>&nbsp;<\/p>\n<p>INTEGER :: a, b, c \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u201c<i>the three digits<\/i>\u201d<\/p>\n<p>INTEGER :: abc, a3b3c3 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u201c<i>the number and its cubic sum<\/i>\u201d<\/p>\n<p>INTEGER :: Count \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u201c<i>a counter<\/i>\u201d<\/p>\n<p>&nbsp;<\/p>\n<p>Count = 0<\/p>\n<p>DO a = 0, 9\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u201c<i>for the left most digit\u201d<\/i><\/p>\n<p>DO b = 0, 9 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u201c<i>for the middle digit<\/i>\u201d<\/p>\n<p>DO c = 0, 9 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u201c<i>for the right most digit\u201d<\/i><\/p>\n<p>abc\u00a0 \u00a0 = a*100 + b*10 + c \u00a0 !\u00a0 \u00a0 \u00a0 \u00a0 \u201c<i>the number<\/i>\u201d<\/p>\n<p>a3b3c3 = a**3 + b**3 + c**3 !\u00a0 \u00a0 \u00a0 \u00a0 \u201c<i>the sum of cubes\u201d<\/i><\/p>\n<p>IF (abc == a3b3c3) THEN \u00a0 \u00a0 !\u00a0 \u00a0 \u00a0 \u00a0 \u201c<i>if they are equal<\/i>\u201d<\/p>\n<p>Count = Count + 1\u00a0 \u00a0 \u00a0 \u00a0 ! \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u201c<i>count and display it<\/i>\u201d<\/p>\n<p>WRITE(*,*)\u00a0 \u2018Armstrong number \u2018, Count, \u2018: \u2018, abc<\/p>\n<p>END IF<\/p>\n<p>END DO<\/p>\n<p>END DO<\/p>\n<p>END DO<\/p>\n<p>&nbsp;<\/p>\n<p>END PROGRAM\u00a0 ArmstrongNumber<\/p>\n<p>The output of the preceding program is shown below. There are six Armstrong numbers between 0 and 999.<\/p>\n<p>Armstrong number 1: 0<\/p>\n<p>Armstrong number 2: 1<\/p>\n<p>Armstrong number 3: 153<\/p>\n<p>Armstrong number 4: 370<\/p>\n<p>Armstrong number 5: 371<\/p>\n<p>Armstrong number 6: 407<\/p>\n<p style=\"text-align: center;\"><strong><a href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\">Learn Coding in your Language! Enroll Here!<\/a><\/strong><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span><strong>Conclusion<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Here, one may learn about the Armstrong number, its Python implementation, and its algorithm. Are there any real-world uses for the special quality of Armstrong numbers then? There aren&#8217;t any in reality, and the uniqueness of these numbers serves no useful use other than as an example or a teaching tool to help students validate their programs, understand topics better, and investigate the laws of a new programming language.<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center;\" colspan=\"3\"><strong>Our Other Courses<\/strong><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/entri.app\/course\/mep-course\/\"><strong>MEP Course<\/strong><\/a><\/td>\n<td><a href=\"https:\/\/entri.app\/course\/quantity-surveying-course\/\"><strong>Quantity Surveying Course<\/strong><\/a><\/td>\n<td><a href=\"https:\/\/entri.app\/course\/montessori-teachers-training-course\/\"><strong>Montessori Teachers Training Course<\/strong><\/a><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/entri.app\/course\/performance-marketing-course\/\"><strong>Performance Marketing Course\u00a0<\/strong><\/a><\/td>\n<td><a href=\"https:\/\/entri.app\/course\/practical-accounting-course\/\"><strong>Practical Accounting Course<\/strong><\/a><\/td>\n<td><a href=\"https:\/\/entri.app\/course\/yoga-teachers-training-course\/\"><strong>Yoga Teachers Training Course<\/strong><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>What is an Armstrong Number? According to mathematical number theory, the Armstrong number is any number that, when each of its digits is raised to the power of the number of digits in the number, generates the sum of the same number in every given number base.\u00a0 Using the decimal system and the basic number [&hellip;]<\/p>\n","protected":false},"author":93,"featured_media":25543997,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[802,1903,1864,1882,1888,1883,1881],"tags":[],"class_list":["post-25543996","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-coding","category-data-science-ml","category-java-programming","category-python-programming","category-react-native","category-web-android-development"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python Program to Check Armstrong Number - Entri Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Program to Check Armstrong Number - Entri Blog\" \/>\n<meta property=\"og:description\" content=\"What is an Armstrong Number? According to mathematical number theory, the Armstrong number is any number that, when each of its digits is raised to the power of the number of digits in the number, generates the sum of the same number in every given number base.\u00a0 Using the decimal system and the basic number [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Entri Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/entri.me\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-18T09:30:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-27T05:09:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/10\/Untitled-2022-10-05T130716.866-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"820\" \/>\n\t<meta property=\"og:image:height\" content=\"615\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Akhil M G\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@entri_app\" \/>\n<meta name=\"twitter:site\" content=\"@entri_app\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Akhil M G\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/\"},\"author\":{\"name\":\"Akhil M G\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/875646423b2cce93c1bd5bc16850fff6\"},\"headline\":\"Python Program to Check Armstrong Number\",\"datePublished\":\"2022-10-18T09:30:49+00:00\",\"dateModified\":\"2023-11-27T05:09:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/\"},\"wordCount\":1035,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/10\/Untitled-2022-10-05T130716.866-1.png\",\"articleSection\":[\"Articles\",\"Coding\",\"Data Science and Machine Learning\",\"Java Programming\",\"Python Programming\",\"React Native\",\"Web and Android Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/\",\"url\":\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/\",\"name\":\"Python Program to Check Armstrong Number - Entri Blog\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/10\/Untitled-2022-10-05T130716.866-1.png\",\"datePublished\":\"2022-10-18T09:30:49+00:00\",\"dateModified\":\"2023-11-27T05:09:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#primaryimage\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/10\/Untitled-2022-10-05T130716.866-1.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/10\/Untitled-2022-10-05T130716.866-1.png\",\"width\":820,\"height\":615},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/entri.app\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Programming\",\"item\":\"https:\/\/entri.app\/blog\/category\/python-programming\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python Program to Check Armstrong Number\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/entri.app\/blog\/#website\",\"url\":\"https:\/\/entri.app\/blog\/\",\"name\":\"Entri Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/entri.app\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/entri.app\/blog\/#organization\",\"name\":\"Entri App\",\"url\":\"https:\/\/entri.app\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"width\":989,\"height\":446,\"caption\":\"Entri App\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/entri.me\/\",\"https:\/\/x.com\/entri_app\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/875646423b2cce93c1bd5bc16850fff6\",\"name\":\"Akhil M G\",\"url\":\"https:\/\/entri.app\/blog\/author\/akhil\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Program to Check Armstrong Number - Entri Blog","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:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/","og_locale":"en_US","og_type":"article","og_title":"Python Program to Check Armstrong Number - Entri Blog","og_description":"What is an Armstrong Number? According to mathematical number theory, the Armstrong number is any number that, when each of its digits is raised to the power of the number of digits in the number, generates the sum of the same number in every given number base.\u00a0 Using the decimal system and the basic number [&hellip;]","og_url":"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/","og_site_name":"Entri Blog","article_publisher":"https:\/\/www.facebook.com\/entri.me\/","article_published_time":"2022-10-18T09:30:49+00:00","article_modified_time":"2023-11-27T05:09:56+00:00","og_image":[{"width":820,"height":615,"url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/10\/Untitled-2022-10-05T130716.866-1.png","type":"image\/png"}],"author":"Akhil M G","twitter_card":"summary_large_image","twitter_creator":"@entri_app","twitter_site":"@entri_app","twitter_misc":{"Written by":"Akhil M G","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#article","isPartOf":{"@id":"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/"},"author":{"name":"Akhil M G","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/875646423b2cce93c1bd5bc16850fff6"},"headline":"Python Program to Check Armstrong Number","datePublished":"2022-10-18T09:30:49+00:00","dateModified":"2023-11-27T05:09:56+00:00","mainEntityOfPage":{"@id":"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/"},"wordCount":1035,"commentCount":0,"publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"image":{"@id":"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/10\/Untitled-2022-10-05T130716.866-1.png","articleSection":["Articles","Coding","Data Science and Machine Learning","Java Programming","Python Programming","React Native","Web and Android Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/","url":"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/","name":"Python Program to Check Armstrong Number - Entri Blog","isPartOf":{"@id":"https:\/\/entri.app\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#primaryimage"},"image":{"@id":"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/10\/Untitled-2022-10-05T130716.866-1.png","datePublished":"2022-10-18T09:30:49+00:00","dateModified":"2023-11-27T05:09:56+00:00","breadcrumb":{"@id":"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#primaryimage","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/10\/Untitled-2022-10-05T130716.866-1.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/10\/Untitled-2022-10-05T130716.866-1.png","width":820,"height":615},{"@type":"BreadcrumbList","@id":"https:\/\/entri.app\/blog\/what-is-an-armstrong-number-armstrong-number-program-in-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/entri.app\/blog\/"},{"@type":"ListItem","position":2,"name":"Python Programming","item":"https:\/\/entri.app\/blog\/category\/python-programming\/"},{"@type":"ListItem","position":3,"name":"Python Program to Check Armstrong Number"}]},{"@type":"WebSite","@id":"https:\/\/entri.app\/blog\/#website","url":"https:\/\/entri.app\/blog\/","name":"Entri Blog","description":"","publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/entri.app\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/entri.app\/blog\/#organization","name":"Entri App","url":"https:\/\/entri.app\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","width":989,"height":446,"caption":"Entri App"},"image":{"@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/entri.me\/","https:\/\/x.com\/entri_app"]},{"@type":"Person","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/875646423b2cce93c1bd5bc16850fff6","name":"Akhil M G","url":"https:\/\/entri.app\/blog\/author\/akhil\/"}]}},"_links":{"self":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25543996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/users\/93"}],"replies":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/comments?post=25543996"}],"version-history":[{"count":12,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25543996\/revisions"}],"predecessor-version":[{"id":25569289,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25543996\/revisions\/25569289"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media\/25543997"}],"wp:attachment":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media?parent=25543996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/categories?post=25543996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/tags?post=25543996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}