Check for an Armstrong number - Python Mathematics Project 11

preview_player
Показать описание
The video verifies an Armstrong number, in which the sum of all the digits raised to the power of the number of digits equals the number itself. We pick up the digits using modulus operation iteratively. Then we raise the power of the digits. Finally we sum up all the powers to see if the original number can be calculated back.

You'll learn most by trying my code while watching the video.

Basic Python Fast

Playlist of my Python mathematics projects

Playlist of my Python examples
Рекомендации по теме
Комментарии
Автор

Hello..Sir..I have to create Password generator using Hill climb algorithm for my AI project....please suggest me ...how can i do that..?? Or make a video ..for Generate random string using hill climb algorithm..please...

yashjoshi
Автор

can you help me in this assignment:
A string of the form "3, 9, 13, 4, 42" is given. It is necessary to convert it into a list and calculate its square for each element. Then merge the squares of these elements back into a string and print them in the console.



Entrance:



string = "3, 9, 13, 4, 42"

Exit:



string = "9, 81, 169, 16, 1764"

pocetnik