Python Programs - Armstrong Numbers
ฝัง
- เผยแพร่เมื่อ 29 มิ.ย. 2024
- In this python programming tutorial you will learn about the Armstrong numbers in detail with different examples.
Armstrong numbers are the number of nth digit which is equal to the sum of nth power of its digit.In this tutorial we explained you how to find out whether the given number is an armstrong number or not and also we wrote the program to find out the armstrong numbers in particular range.
For more free tutorials on computer programming
/ amulsacademy
/ amulsacademy
Really fascinating to see you teach like this ! . missed your channel during my early days . great teaching by looping the process step by step till the end . Keep exploring new stuff and Thank you
This is my comment by just viewing ur 1st video . Hope I will finish this playlist
Daily night before sleep one tutorial , just for your voice, so soothing... Get good sleep. By the way ur tutorials are great
Thank you so much 😊
😂😂😂😂😂😂
😂😂
Tharki lol 😂
😂
I feel lot happy after watching this video ...I watched lot of videos about how to write armstrong number ...I feel lot of confusion...then I watched this vdio...ur explaining very clearly ...really osmmm to the way of explaining ...Thank you so much for clarifing my doubt...
My Pleasure:)
I was looking for this type of concept finally i got this thanx for your precious efforts ❤️🙏
Most welcome 😊
I learned python from different different tutor but no one explain like you. Thankyou ❤❤❤❤
You are really amazing Guru.Thank you very much mam.I dont like math.But since iam preparing for interview I need to learn.Your logic,way of explaining the concepts were just like Thirunel veli alwah.Flows smoothly into the memory of my brain.Thank you verrrrry much and have a great year.
I love this channel and thank you so much for making this explanation really easy to follow!
Easily explained. I searching for a great video to understand amstrong numbers program. Finally i found it. Thanks for the video mam
Glad it was helpful!
To make it more easy, i just typecast the number to get each part separately. Means apply for loop on str(153)
One of the best tutorial which ihve saw in my life... U r just amazing sister... Uhve taken time and explained smoothly... Wow sis keep Going.. God bless u sis
Thank you:)
I am yet to decide how many thanks i still owe for the solution approach.. Outstanding explanation !
Thanks a lot
Best explanation by you madam , i check many websites and video but u explain so deeply and slowly and each of point...WOW (JUST 4 U) & kudos 👏👏
This video helps me a lot thanks amul academy. I have to say this is best channel on TH-cam for purpose of getting education of computer science.
Thank you :)
Hello miss. I loved the way you explained every step of the logic. Keep on making such great videos. Thank you very much.
Thank you :)
i fell in love with the voice and the way of explanation. Great tutor i have come across.
Happy to hear that!
I am in love with your teaching skills.
Very nicely explained.
Thank you for doing this free.
😍😍😍
It's my pleasure :)
Best explanation by you madam , i check many websites and video but u explain so deeply and slowly and each of point...WOW (JUST 4 U)
Thank you so much :)
Your teaching skills are awesome
Loved your videos and believe me this is a very helpful playlist of python programs❤️
Thanks
Glad you like them! :)
@@AmulsAcademyamazing mam love the content
you are the best ma'am seriously
Thank you :)
Thank you for this playlist, it is really helpful for placements
Man u r doing a great job by making these videos and helping millions. Thanks man keep up the good work.
dude she is a woman!!!!!
dude wat r u doing rn......
U r the best python teacher I’ve ever met ur way of teaching is the best 👌👌👌👌
Thank you :)
First time hearing girls voice in tutorials video. Happy for that. All the best! ♥️
Thank you :)
❤️ বিজেপি, সব ভোট বিজেপি 🙏 , 👍 Vote BJP
🙄🙄🙄🙄🙄
You are a great teacher, thanks a million.
Your explanation is really superb and its helping me a lot to understand Logics and code.
Glad to hear that :)
i watched many video's on this concept none of them as cleared as this, excellently done
Thank you : )
I am so thankful that you're videos are in english and because of that I have subscribed😊
Welcome!! :)
the 20 minutes were worth the video. thank you :)
Thank you :)
I wish i had a teacher like you in my college....thank you so much
Pleasure 😊❤️
Madam no word is coming to my mind to explain your knowledge...and most importantly way of teaching..I am your big fans mam...
Thank you 😊
wow ! what a explanation mam it went straight into my head>
Thank you:)
@@AmulsAcademy plzzz put video on palindrome n anagram mam
really it is true, oops till now i have been remember every given value suppurated and cubed then add, if the result is equal to input that no. is an Armstrong number. every time googling its shows like that.
mam your explanations are just accurate that any beginner can understand them without any doubt
Glad to hear that 😊
Loved your explanation!!! Thank you so much!
My Pleasure :)
Finally cleared my doubts with all concepts
I am very much thankful for you because I was looking for this type of concept finally I got in your videos from that day I searching for your video to clear my doubt and improve problem solving skills .
And I have become your permanent subscriber 😊
Thank you for me to teach and I really know the keywords's usage now
Pleasure :)
I have seen many video related to python program logic, but no one is like this channel
Thank you :)
One of the best and finest explanation mam .hats off to your effort
Thank you 😊
One of the finest explanation 💯💯
Thank you 😊
I have got so benifit for this toturial this is very helpful for learning program and also logic
Thank you :)
Another alternative method to calculate the Armstrong Number:
### Get the number
n = int(input("Enter the number: "))
### Convert to string
n1 = str(n)
### String Count
count = len(n1)
### add a string to list
n1 = [int(i) for i in n1]
### find the power of each number by its count and store in D list
D = [ ]
for i in n1:
j = i ** count
D.append(j)
### Initiate the dummy variable for the addition of list
sums = 0
for num in D:
sums += num
### Driver function to check the number is Armstrong or not.
if n == sums:
print("Its Armstrong Number.")
else:
print("Not an Armstrong number.")
💖
Very nicely explained...thanks for making my doubts clear.
Pleasure :)
I don't know how to write a program in easy way now I am watching this video it's very easy and simple tq very much sister😊
Very clear tutorials. Thank you!
Glad it was helpful! :)
Great Instructor, thank you for helping.
Pleasure :)
You deserve many more subscribers
All the best 👍 you have wonderful voice 👌
Really really great explanation. I'm becaming pro, thanks for video ❤️
Really help full it really helped me a lot ...thank you ma'am..keep uploading such knowledgeable videos
My Pleasure:)
Thank you mam
Thanks Amulya..Love the way you teach!
Thank you 😊
Really your voice is amazing ❤️❤️. For easily understand
Thankyou so much Ma'am. It was so easy to understand.
Absolute the best....loved your teaching method
Thanks so much!
Hello Ma'am,thanks for sharing the knowledge and it is quite useful video!!!
I have gone through your most of the videos and can't find related to shallow and deep copy concepts in Python.Can you please share some details with regards to them?
Sure :)
Thanks Ma'am..pls do upload shallow and deep copy video.
Explanation is very good easily anyone can understand thank u.........
Thank you :)
Great explanation. Keep rocking.
Mam your explanation is so good mam. I am understanding the topics very clearly
Glad to hear that 😊
Thank you Ma'am, you're explaination was very good
Very nice! Good explanation. Thanks for uploading this video.
Pleasure :)
Nice vids i loved them all and can you tell what kind of book you are using for this tutorial?
Thanks a lot ❤️ I am new to this you helped me a lot 😊 god bless you
You’re welcome 😊
very efficient and deep explaination .Thanku so much for sharing this......
Glad to hear that :)
I like the way of explanation,this is very useful ,who wants to learn python, 👍
Ty! I tweeted this!
wonderfull explanation mam,
Guys don't waste your money for joining courses in python just watch all videos in Amul's academy
Thank you :)
Hi, your explaination is speechless, Very easy to understand mostly for beginners . Which version is best to execute programs in Laptop because in mobile phone some programs are not executing , can u provide the link
Ur tutorial is too good thank you
I love u mam.... I'm falling love in ur teaching....
Nice detailed explanation 💯 Armstrong number👍
Keep uploading such amazing videos ....you are awsm
Thank you :)
Superb Playlist.Much Thanx :)
Legendary explanation..!! 👏👏👏👏👏
Thank you :)
Thanks for helping me...! ❤️ ❤️ ❤️
Pleasure :)
U r explanation is very fantastic..
u can upload more videos about CRT classes mam ...
Thank you :)
it was mind blowing tutorial. thank you
Pleasure :)
Wow...., great👏👏 explanation is super good!! Tysm
Thank you 😊
Very nice tutorial, one question - is 0 also an armstrong number ?
outstanding explanation. grt!!!!
good session nice presentation waiting for other videos
mame your teaching style is osm i am waiting all videos of python practice set
Mam you are best and ur speaking is most best
Thank you:)
yo this is perfectly explained.
Thank you :)
thanks alot of my doubts are cleared.
Nice explanation. Thank you so much..
Welcome:)
This is real gold
value=str(154)
count=len(value)
re=0
for x in value:
temp=pow(int(x),count)
re=re+temp
ans=re
if(ans ==int(value)):
print("yes")
else:
print("not")
Great explanation mam!! Thank you so much
Pleasure 😊
Thank you..superb explanation
My Pleasure :)
Thanks Keep Up The Good Work 👍👍👍
Thank you 😊
hi maam good work,, which editor u r using in this tutorial???
Plzz make more practice videos it helpeds a lot !!!!
Thank you :)
Thank you, keep doing more vedios. You are good.
Thank you:)
Amar Alen g
It is a Armstrong number
Excellent madam. You did great job
Thank you :)
thanks for this and other important videos
My Pleasure :)
Tqs for u r hard work
Your voice is so nice I'll enjoy all session
Thank you :)
I'm impressed!
Thank you :)
nice explanation!
plz add more interview question
your teaching style is awesome 10/10
Thank you :)
Wowww..! Thank you so much mam.
Most welcome 😊
I came up with the following solution on my own. It seems to work
def is_armstrong(num):
tally = 0
n = len(str(num))
for i in str(num):
tally = (int(i)**n) + tally
if tally == num:
return True
else:
return False
for i in range(1001):
if is_armstrong(i) == True:
print(i)
some simplified
def is_armstrong(num):
tally = 0
n = len(str(num))
for i in str(num):
tally = (int(i)**n) + tally
return tally == num
for i in range(1001):
if is_armstrong(i)
print(i)