Python Program to Check Armstrong Number

  Рет қаралды 104,065

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 264
@CodeWithHarry
@CodeWithHarry 4 жыл бұрын
Armstrong to theek hai lekin ye Binod kon hai?
@prasadnatarajan5019
@prasadnatarajan5019 4 жыл бұрын
Binod is Binod 🤣😎
@hunnanmustafa2813
@hunnanmustafa2813 4 жыл бұрын
Are apko nhi pta 🤣🤣 ya likes ke liy likha hai
@janvibahuguna865
@janvibahuguna865 4 жыл бұрын
Binod ka toh pta nhi pr Nitish toh apun ha
@AdarshSingh-cb5yf
@AdarshSingh-cb5yf 4 жыл бұрын
Sir Binod CORANA KA BADA BHAI hai 😅
@rahuldwivedi9236
@rahuldwivedi9236 4 жыл бұрын
mere pados m rehta h
@siddheshphadke3719
@siddheshphadke3719 4 жыл бұрын
I m 14yrs old and we r not taught programming in school, I started learning programming in 6th, and am an intermediate python coder, all just bcoz of you, hope you read and if yes, plz reply or give a ❤️👍😊☺️
@technoguide1462
@technoguide1462 4 жыл бұрын
Please
@siddheshphadke3719
@siddheshphadke3719 4 жыл бұрын
@@technoguide1462 ?
@DivyanshuLohani
@DivyanshuLohani 4 жыл бұрын
@@siddheshphadke3719 same here
@technoguide1462
@technoguide1462 4 жыл бұрын
@@siddheshphadke3719 please give me feedback please
@technoguide1462
@technoguide1462 4 жыл бұрын
@@DivyanshuLohani what happened
@sangeetawadhwani5515
@sangeetawadhwani5515 4 жыл бұрын
Harry bhai, you are a wonderful teacher and programmer
@technoguide1462
@technoguide1462 4 жыл бұрын
If you like please support
@TecSantoshKumar
@TecSantoshKumar 4 жыл бұрын
Apki waja se mai apne sapne pure kr pa rahahun Mai apni kud ki websites banali h ab mai bahut jald payse Arun kr pauga Lekin yh bat Jan kr bahut khushi ho ki mai ek electrical engineering karne wala student apki waja se ek Web developer bn paya.
@ruchirmandora4656
@ruchirmandora4656 3 жыл бұрын
Great way to make us acually realise HOW TO CODE !!!!!!!!!!!!
@vaibhavyadav8726
@vaibhavyadav8726 4 жыл бұрын
9:09 We've changed the value of n in loop.
@yashwanthaas3233
@yashwanthaas3233 2 жыл бұрын
Thank you very much!
@channelpro2284
@channelpro2284 4 жыл бұрын
You are great genius coder.
@itzjvs9052
@itzjvs9052 4 жыл бұрын
Bro video dekhne se pahele..main try Kiya...🤗🙈 aur Success bhi Mila..😎🙈✌. You are ossm bro..✌
@harshitachaurasia1246
@harshitachaurasia1246 4 жыл бұрын
Aisa lgta h aap pura mere college k sath chl rhe ho same...topic there same topic here even in same lang So nice of u
@yashbansal1414
@yashbansal1414 4 жыл бұрын
Plot Twist: Harry and you are in same college, but he didn't revel his identity yet 😂😂😂
@harshitachaurasia1246
@harshitachaurasia1246 4 жыл бұрын
@@yashbansal1414 😂😂😂kash
@parthgupta4850
@parthgupta4850 4 жыл бұрын
Harry bhai ur best programming teacher
@adityarathod6924
@adityarathod6924 4 жыл бұрын
Harry Bhai ....love u....i was very obssessed with code when i first learn from another KZbin channel....but when i started watching your vdo.....swear to god.....siddha dimaag me gushta hai......maja aa gaia....Love u bro....Maja aa gaia
@thengc2676
@thengc2676 2 жыл бұрын
I took a different approach! n = input('Enter the number: ') length = len(n) value = 0 for i in n: a = int(i)**length value = value + a print(value) if value == int(n): print('The number is an Armstrong number!') else: print('The number is not an Armstrong number.')
@thengc2676
@thengc2676 2 жыл бұрын
@Malik Abdullah Nasir it's is nice coincidence so why are u learning to code
@shutzzzzzz
@shutzzzzzz Ай бұрын
i took same approach.
@nareshgoyal1994
@nareshgoyal1994 4 жыл бұрын
Harry bhia aapka internet really superfast hai.. Bilkul aapki tarah 🔥🔥🔥🔥
@linujose2536
@linujose2536 4 жыл бұрын
excellent bhai this question was asked to me in one of the interviews i faced recently !
@bedifferent8166
@bedifferent8166 4 жыл бұрын
there should be temp = n, as n keeps changing and becomes 0 at last. SO we have to store the input value to a temp variable
@maheshbehera7469
@maheshbehera7469 8 ай бұрын
Yes
@mercesletifer6625
@mercesletifer6625 2 жыл бұрын
Perfect explanation sir... I wish i had a teacher like you🙄🙄🙄
@mehulrathod7299
@mehulrathod7299 4 жыл бұрын
Harry bhai this would also work: from math import pow z = (input("Enter a number: ")) p = list(z) c = 0 for i in range(0, len(p)): t = pow(int(p[i]), len(p)) c = c+t if int(z) == c: print(f'{z} is an armstrong number') else: print("Not an armstrong number")
@abhishekpandey3070
@abhishekpandey3070 2 жыл бұрын
🔥🔥🔥
@dakshmehan4114
@dakshmehan4114 Жыл бұрын
another possible solution is this num=input('please enter the number in question') n=len(num) sum=0 for digit in num: sum+=int(digit)**int(n) if int(sum)==int(num): print('it is an armstrong number') else: print('it is not an armstrong number')
@lokeshpatil6595
@lokeshpatil6595 4 жыл бұрын
Harry bhai apke channel per java ke tutorial nahi hai. So please upload full java course begineer to advanced. Apse achha koi nahi samjata hai pure youtube per.
@souravkumar7283
@souravkumar7283 4 жыл бұрын
Perfect teaching skills 👌
@programmingtricks833
@programmingtricks833 4 жыл бұрын
Harry bhai theak haa code number = input("Number Enter: ") lennumber = len(number) sum=0 for i in number: square= int(i)**lennumber sum+=square if int(number) == sum: print("Number is Armstrong") else: print("Number is not Armstrong")
@sumeetnegi9934
@sumeetnegi9934 4 жыл бұрын
Bhai mast video banai hai.. aise hi aur banao yrr
@DeepakGupta-hd1ns
@DeepakGupta-hd1ns 4 жыл бұрын
Number ki digits ke liye calculation ki kya need hai? Number ko string me convert karke uski index ke liye bhi loop chla sakte hai.
@adityajadhavar9675
@adityajadhavar9675 4 жыл бұрын
Bohot achhe harry bhai.Please aise aur practice programs banaye
@apaniduniya7283
@apaniduniya7283 4 жыл бұрын
Sr kivy kab sikhavoge
@pythonenthusiast9292
@pythonenthusiast9292 4 жыл бұрын
yes !! same question harry bhai!
@nikhilraj1842
@nikhilraj1842 4 жыл бұрын
1:42 Harry Bhai mic ko kya hua tha
@rajuraghuwanshi2537
@rajuraghuwanshi2537 3 жыл бұрын
perfect 👌👌
@clashcloud5720
@clashcloud5720 4 жыл бұрын
Harry bhai.... debugging pe bhi video bana do plzzz
@Aditya-ve1ud
@Aditya-ve1ud 2 жыл бұрын
I love the way when he told - samjha kar hi manunga.😂😂😂
@iam.superaman
@iam.superaman 4 жыл бұрын
Harry bhai you are op 🤣🤣 Binod Number wali baat pr hasi aa gai😄😂
@piyushsinha0001
@piyushsinha0001 15 күн бұрын
9:03 sum == n krne pd yeh kaam nhi karega kyuki n ki value ko hum update kar rhe h baar baar with (n=n//10) se , Ish karan yeh kbhi equal hi nhi hoga Ishke liye hume n ki value of kisi aur variable mei store karna hoga like originaln=n, and sum==originaln, karna hoga
@kedargalande3193
@kedargalande3193 3 жыл бұрын
Very well explained!
@siddharth840
@siddharth840 3 жыл бұрын
thanks brother its help me a lot
@codepotato1537
@codepotato1537 4 жыл бұрын
good explanation harry
@rishurajsharma3130
@rishurajsharma3130 4 жыл бұрын
Bhai Aapke har din 5000 subscribers badh rahe hai Congo You deserve a lot more
@vsstories-eo9ue
@vsstories-eo9ue Жыл бұрын
1:41 was awesome 😅😅😅😂😂🤣🤣
@ad_uke
@ad_uke 4 жыл бұрын
Thank you Harry bhai👌🏻
@anmolsoni239
@anmolsoni239 2 жыл бұрын
6:52 Bhaiya agar digit ko append kare toh nhi chalega??
@nishishaandilyaa
@nishishaandilyaa 3 жыл бұрын
Thank you harry for this great vedio... Lots of love your way... ❣️❣️ keep making us more perfect in python.
@akhalaqmonis4713
@akhalaqmonis4713 4 жыл бұрын
Awesome program harry bhai....... And last main ji tune bajate ho uska naam kya hai??
@rupamhari115
@rupamhari115 4 жыл бұрын
harry bhai.. aap ka web development course bohot hi accha tha. please start a course on angular or reactJS.
@varuntripathi6928
@varuntripathi6928 4 жыл бұрын
Harry bhai Main final year student abhi start hua hai mujhse data Structure kuch khass nhi aata main ye jaanna chahta hu ki aapki data structure ki series kitni time pr khatam hogi ek guzaris smjho yaa apne bhai ki request try to upload videos regarding Data Structures and Algorithm only not other stuff. This will help me out. Aapke DS and algo series mujhe pasand aayi aur main use continue krna chahta hu. If u read my comment kindly reply....... Write now I am taking ur Complete C tutorial that is awesome itna aache se toh hamare professor ne bhi nhi smjhaya. So, think About it please......................
@hari_1357
@hari_1357 8 ай бұрын
Thank you soooooo much!!
@schooldays5817
@schooldays5817 4 жыл бұрын
Sirji apke tutorial BHOT badiya hote hai....kya aapp Java programming language ke tutorial leke aa skteho
@kirandhumal1799
@kirandhumal1799 Жыл бұрын
Shukriya bhai ❤
@jitendradashora8956
@jitendradashora8956 2 жыл бұрын
def isArmstrong(number): numList = list(str(number)) sum = 0 for numbers in range(len(numList)): sum = sum + int(numList[numbers]) ** len(numList) if sum == int(number): print(f"Yes {number} is a Armstrong number")
@shivanksharma5443
@shivanksharma5443 4 жыл бұрын
Sir you have made learn linux in one video tutorial and it helped me a lot. Can you make a full tutorial on linux. Please..🙏🏻🙏🏻🙏🏻 And if it is already there then can anyone provide me the link.
@jaygopani8289
@jaygopani8289 2 жыл бұрын
for loop se kese hota he??
@krishalkhadgi3393
@krishalkhadgi3393 2 жыл бұрын
num, sum = input("Enter a number: "), 0 for i in num:sum += (int(i) ** len(num)) if (sum == int(num)):print(f"{num} is an Armstrong number.") else:print(f"{num} is not an Armstrong number") sir this is the shortest code i can write for this problem please verify
@paramjjethwa8734
@paramjjethwa8734 2 ай бұрын
amaazing video man!
@Ammarkoka
@Ammarkoka 4 жыл бұрын
Please make a series on data structures and algorithms in python please. 🔥💯
@iam.superaman
@iam.superaman 4 жыл бұрын
Yes please Harry bhai
@sujanshahi6819
@sujanshahi6819 4 жыл бұрын
You're amazing Harry sir💖
@ManishSharma-fi2vr
@ManishSharma-fi2vr 4 жыл бұрын
Sir make videos on star patterns in C programming language
@NTTtv
@NTTtv 4 жыл бұрын
are you using any external device for writing?
@harshitchaudhary6166
@harshitchaudhary6166 4 жыл бұрын
Bhai aapki video he dekh rha tha 😍😍
@sourabhjain712
@sourabhjain712 4 жыл бұрын
bro you are awesome
@vasugarg2293
@vasugarg2293 4 жыл бұрын
Yeh raha armstrong number ko check karne ka code. num = input("Enter the number: ") lst = [] for c in num: lst.append(int(c)**int(len(num))) if sum(lst) == int(num): print("This number is a armstrong number") else: print("This number is not a armstrong number")
@prithvivirajgupta1282
@prithvivirajgupta1282 3 жыл бұрын
harry bhaiya thnx mai 13ka hu aur coding sikh rh hu thnx
@KunalKumar-tt4bt
@KunalKumar-tt4bt 2 жыл бұрын
print(num, " ")
@yourintrovertguy
@yourintrovertguy 4 жыл бұрын
Please also make video in machine learning project and also data structure and algorithms in python.....
@vikaskatke3
@vikaskatke3 4 жыл бұрын
Thank you brother 🙏👍
@ishaankapoor933
@ishaankapoor933 4 жыл бұрын
lambda n: n == reduce(lambda x, y: x + y, [int(str(n)[i]) ** len(str(n)) for i in range (len(str(n)))])
@anonymusk9397
@anonymusk9397 4 жыл бұрын
Bro make this series in python too please🙏🙏🙏🙏🙏🙏
@CSKuldeepSingh
@CSKuldeepSingh 4 жыл бұрын
Bhai ek problem hai kyoki mathematically 0 ki power 0 is equal to 1 hota hai fir ye Armstrong number kaise ho sakta hai.
@bindassboss4620
@bindassboss4620 4 жыл бұрын
thank you harry bhai for giving a wonderful course of python
@VivekKumar-qn9fj
@VivekKumar-qn9fj 4 жыл бұрын
Make video on css animations
@SomneelMaity
@SomneelMaity 4 жыл бұрын
please post more python programs like this
@technicalraxo5385
@technicalraxo5385 4 жыл бұрын
Thanks so much sir
@machhindrasmathematics2551
@machhindrasmathematics2551 Жыл бұрын
Make video on anagram of strings
@shivanshutyagi83
@shivanshutyagi83 4 жыл бұрын
Harry bhai 👋👋
@विवेकअवस्थी-ङ5द
@विवेकअवस्थी-ङ5द 4 жыл бұрын
Sir how are you able to write? I mean what stylus and pad are you using?
@goodbye4589
@goodbye4589 3 жыл бұрын
a=int(input()) b=[] for i in str(a): c=int(i) b.append(c**len(str(a))) if sum(b)==a: print(f"{a} is an Armstrong number") else: print("No it is not")
@shivenduvimal193
@shivenduvimal193 3 жыл бұрын
Sum = 0 , pehle mention krna kyon jaroori hai...Please reply
@ron_stark4179
@ron_stark4179 4 жыл бұрын
Sir, Please please please make a video on Pyside2 Qt5 please please make video
@maheshappaji1273
@maheshappaji1273 3 жыл бұрын
thank you
@RohanDasRD
@RohanDasRD 4 жыл бұрын
Awesome bro
@Sampoorna.
@Sampoorna. 2 жыл бұрын
Can this be done with for loop???
@promakanungoe8294
@promakanungoe8294 4 жыл бұрын
Please make tutorial for java...mostly needed.
@adamsaleh8018
@adamsaleh8018 4 жыл бұрын
c# ke upar bhi ak complete tutarial banado . bohathi acccha hoga
@sujonnath4904
@sujonnath4904 4 жыл бұрын
Who said 3 at 1:41 is it harry
@khanmujtaba1887
@khanmujtaba1887 4 жыл бұрын
Amazing sir thank you
@madhujain2871
@madhujain2871 4 жыл бұрын
Space tech sikhao please jo whitehat jr me sikhate hai faaltu me 1 lakh rupees charge karte hai jabki aap ye sab chize free me dete hai you are great human being par please ek baar whitehat jr ka course dekho or uspe ek playlist banao
@sumitadkhale2760
@sumitadkhale2760 4 жыл бұрын
Harry bhai Apptitude and Reasoning Job pane ke liye jaruri hai kya uspe video banao or jaruri hai to kese kar sakte hai or kaha se vo batao pls . . .
@rajrajaparmar7138
@rajrajaparmar7138 4 жыл бұрын
Sir you are great but please tell me about how to make games and app by python
@coderrishav
@coderrishav 4 жыл бұрын
Bhai ek dil dedo agar aap future mein ek AI game banaoge just like chess.
@RohitKumar-go2is
@RohitKumar-go2is 4 жыл бұрын
Sir please make a video on which desktop is best for for programming
@mightyit7483
@mightyit7483 4 жыл бұрын
Bhai ek question hai important ,do you know how can we read the data which is in ram ?
@technicalraxo5385
@technicalraxo5385 4 жыл бұрын
I am big fan of you.. Name: Rajveer singh
@sarenkumar6108
@sarenkumar6108 3 жыл бұрын
number shd be assinged in another temporray variable the equate in if block
@DOWN3X_FF
@DOWN3X_FF 3 ай бұрын
def haarms(n): n=str(n) ghat=len(n) ds=0 for d in n: ds+=(int(d)**ghat) ds=str(ds) return (ds==n) print(haarms(153))
@sciencexdream7473
@sciencexdream7473 4 жыл бұрын
Harry bhai Apne python biggener tutorial mein #59 mein abstraction and encapsulation ko switch kar diya hai . main vo playlist dekhra hun abhi main beginner hun..
@siddheshphadke3719
@siddheshphadke3719 4 жыл бұрын
Problem is the variable n is not the original one as we have modified it in while loop
@lakshyaarora1423
@lakshyaarora1423 3 жыл бұрын
n ki value while loop ke endgame ke baad 0 hogi kyuki floor division of last 8//10=0 dega n ki value intact toh nhi thi badal gayi aur agar ap uss n ki value se program krte ho toh not an Armstrong aayega
@ayushkhare3455
@ayushkhare3455 4 жыл бұрын
Harry bhai can you please make tutorials on Java pls
@rishusolanki9171
@rishusolanki9171 3 жыл бұрын
Samzakar hi manuga 😃😃😃😃😃🙏🏻
@dhavalsaxena9583
@dhavalsaxena9583 3 жыл бұрын
nice sir
@rajatyadaw8496
@rajatyadaw8496 4 жыл бұрын
I have a question How to find angles between two lines with numpy. Please tell me
@yogendratripathi7753
@yogendratripathi7753 2 жыл бұрын
Great
@vanshikashah3013
@vanshikashah3013 4 жыл бұрын
Yes variable kisi or value me save karna padega
@shubhayonbanik3857
@shubhayonbanik3857 6 ай бұрын
Error hoga kyuki n toh 0 hogaya, btw love your video❤
Creating a Rest API Using Flask and Jsonify in Python
20:27
CodeWithHarry
Рет қаралды 241 М.
Python Program to Check If the Number is Armstrong or Not?
14:37
WsCube Tech
Рет қаралды 68 М.
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН
C Program to Find Prime Number
27:20
CodeWithHarry
Рет қаралды 151 М.
Solve any Star Pattern program in Python
18:44
Simply Coding
Рет қаралды 1 МЛН
HCF/GCD of Two numbers Using Python
15:21
CodeWithHarry
Рет қаралды 78 М.
5 Effective Tips to learn Python fast!
15:57
CodeWithHarry
Рет қаралды 1 МЛН
Special Programs in C− Check If The Number Is Armstrong Number
12:16
Python Program #17 - Check Armstrong Number in Python
8:44
Programming For Beginners
Рет қаралды 16 М.
C Program to Check a Number is Armstrong or Not | Learn Coding
11:22
Learn Coding & Get a Job (in 2025) 🔥
16:54
CodeWithHarry
Рет қаралды 623 М.
Python Armstrong Number Program - In Hindi
18:17
codeitup
Рет қаралды 48 М.
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН