Python Armstrong Number Program - In Hindi

Поділитися
Вставка
  • Опубліковано 24 січ 2025

КОМЕНТАРІ • 113

  • @nirojsubedi
    @nirojsubedi 4 роки тому +26

    you are absolutely amazing yarr.. i know you have done lot of practice to teach and hope you will be one of the great programmer in coming days ....i respect you cause you still make video to share information even you have less viewers....thanks

  • @oxygen3654
    @oxygen3654 Рік тому +4

    Pranam Gurudev, Aapki sabhi khwaishein poori ho. Aap mahan hai!!

  • @rosy9003
    @rosy9003 2 роки тому +3

    Ur teaching way is super awesome... U made this program easiest for me.... Thanks sir 🙏🏻

    • @codeitup
      @codeitup  2 роки тому

      Glad to hear that!

  • @fenrir834
    @fenrir834 3 роки тому +1

    hands down this is the best channel to learn python for Hindi-speaking beginners.

    • @codeitup
      @codeitup  3 роки тому

      So nice of you, God bless you!

  • @rohitgarg4446
    @rohitgarg4446 Рік тому +3

    I did like this !!
    n = int(input("Enter your numbers of even No. = "))
    i = n
    count = 0
    while (i>0):
    i = i // 10
    count = count + 1
    i = n
    sum = 0
    while (i > 0):
    sum = sum + (i % 10)**count
    i = i // 10
    if(sum==n):
    print("Armstrong Number")
    else:
    print("Not Armstrong Number")

    • @mansirao5768
      @mansirao5768 6 місяців тому

      easier ig

    • @mansirao5768
      @mansirao5768 6 місяців тому

      what's the use of count ? when your not printing

  • @praneetkumarjha215
    @praneetkumarjha215 3 роки тому +5

    Perfect content perfect teacher perfect teaching style ... On the way to python

    • @codeitup
      @codeitup  3 роки тому +1

      Thanks Praneet😊

  • @SulemanTheTraveller
    @SulemanTheTraveller 3 роки тому +1

    Sir ap ka style hi amazing hy. thumbs up. by the way armstrong number find krnay k liye mujay last video wala method easy lga hy

  • @Tripti_Foundation
    @Tripti_Foundation 8 місяців тому +2

    actually your explanation with dry run is so much adorable.

    • @codeitup
      @codeitup  8 місяців тому

      Glad you think so!

  • @eduvista9644
    @eduvista9644 2 роки тому +1

    sir aapka padhane ka tareeka jabardast hai, maza aagya

  • @opgaming-jh4hu
    @opgaming-jh4hu 3 роки тому

    sir your teching style is best also explanation
    thank u sir u are the best teacher

    • @codeitup
      @codeitup  3 роки тому

      Thanks & most welcome Hitesh!

  • @paristadebbarma6359
    @paristadebbarma6359 2 роки тому

    I'm just starting loops and your video helps me a lot.
    thanks

    • @codeitup
      @codeitup  2 роки тому +1

      Glad to help you😊

  • @tanveerbibi6474
    @tanveerbibi6474 Рік тому +1

    Very nice video hai❤

  • @arpitapandey8645
    @arpitapandey8645 Рік тому +1

    Thank you sir❤

  • @chandranathrumabhowmick8752
    @chandranathrumabhowmick8752 2 роки тому

    Please do a total video on threads your explanation is high that influenced me so much

  • @vineetsingh7547
    @vineetsingh7547 2 роки тому +1

    Thanks 😊 Sir 👍🙏

  • @fenrir834
    @fenrir834 3 роки тому +4

    just a suggestion to do this differently.
    first make a loop to count the number of digits, let the no.' of digits be n
    then write a seperate loop to take the sum of the digits^n.

    • @youthoob3573
      @youthoob3573 9 місяців тому

      its okay , everyone has their own method, calm down

    • @fenrir834
      @fenrir834 9 місяців тому

      @@youthoob3573
      Sure mate, i have been loosing my shit since two years as you can clearly tell from my comment two years ago, I am calm now since you asked me to

  • @manav.2907
    @manav.2907 3 роки тому +6

    #Sir we can use this also
    n=int(input("enter the number:"))
    i=n
    sum=0
    x=len(str(n))
    while(n>0):
    sum=sum+(n%10)**x
    n=n//10
    if i==sum:
    print("yes the number is an armstrong")
    else:
    print("no the number is not an armstrong")

  • @riyajoshi8229
    @riyajoshi8229 3 роки тому +5

    Sir I use the same program with same logics in pycharm, but i am unable to get the desired answers though indentation and other things are good in place.

  • @motasembillatanjid8483
    @motasembillatanjid8483 3 роки тому +1

    Thanks you sir!!
    You are great

    • @codeitup
      @codeitup  3 роки тому

      Thanks & most welcome dear😊

  • @aneelaamin2235
    @aneelaamin2235 4 роки тому

    very good sir, this video is very helpful for me, thanks,

    • @codeitup
      @codeitup  4 роки тому

      Glad to help you Aneela!

  • @kanduladivya5804
    @kanduladivya5804 4 роки тому

    very good explanation sir,thanku verymuch.

    • @codeitup
      @codeitup  4 роки тому

      You're most welcome !

  • @Ansh_Rajpoot_
    @Ansh_Rajpoot_ 4 роки тому +3

    sir , can we use this code >is it correct>>>>>>>>>>>>>
    a = int(input('ener a num'))
    i = a
    sum = 0
    len = len(str(a))
    while i>0:
    sum = sum + (i%10)** len
    i = i//10
    if a==sum:
    print(' The num is armtrong')
    else :
    print('not armstrong')
    its working fine like yours.

    • @codeitup
      @codeitup  4 роки тому

      If it is working fine then perfect Ansh. A single program may have different logic to solve.

  • @shriyawayangankar393
    @shriyawayangankar393 Рік тому +1

    n=int(input("Enter the number: "))
    def arm(n):
    i=n
    count=0
    while (i>0):
    digit=i%10
    count+ =digit**3
    i//=10
    if n==count:
    print (n, "Armstrong")
    else:
    print(n, "Not armstrong")
    arm(n)

  • @dipendrasingh1586
    @dipendrasingh1586 3 роки тому

    Sir,video banate rahna👍🏻👍🏻👍🏻

  • @iitianvibes_1
    @iitianvibes_1 2 роки тому

    mindblowing series

  • @Tripti_Foundation
    @Tripti_Foundation 8 місяців тому

    n = int(input('Enter a number:='))
    order = len(str(n))
    org = n
    sum = 0
    while n>0:
    sum = sum + (n%10)**order
    n=n//10
    if org == sum:
    print("Number is Armstrong")
    else:
    print("Number is not Armstrong")
    This is the alternative to fird Armstrong number. if set the range between 1 to 500 or more use for loop.

  • @SurajKumar-jw7jo
    @SurajKumar-jw7jo 3 роки тому

    Sir isse previous question me aap ne is online board (digitally) samjaya tha . Aur oski programming thodi alag thi aur isme thodha alag he .
    So dono question me difference kya he .

    • @codeitup
      @codeitup  3 роки тому

      This is for any number of digits. The previous was only for three digits number.

  •  3 роки тому

    Sir I have an extra method to code this,
    pls let me know whether I am wrong or right?
    and mine one is using string function's feature.
    n = int(input("Enter a number: "))
    sum = 0
    i = n
    a = len(str(n))
    while i > 0:
    digit = i % 10
    sum += digit ** a
    i //= 10
    if n == sum:
    print(n, "is an Armstrong number")
    else:
    print(n, "is not an Armstrong number")

  • @ashoknandurka7204
    @ashoknandurka7204 3 роки тому +1

    What's the difference between previous one??

  • @aashishgupta1580
    @aashishgupta1580 2 роки тому +1

    n5 = input("Enter the number
    :")
    a = int(n5)
    b = a
    n5 = list(n5)
    i = len(n5)
    sum3 = 0
    while a>0:
    sum3 = sum3 + (a % 10)**i
    a = a//10
    if b == sum3:
    print("Number is Armstrong")
    else:
    print("Number is not Armstrong")
    the above code is also right or not at all conditions.
    please reply me.

  • @asitchavda9191
    @asitchavda9191 4 роки тому +1

    Sir aise bhi kar sakte he na??
    i=int(input("enter the number="))
    a=n=i
    count=0
    while(i>0):
    i=i//10
    count=count+1
    sum=0
    while(a>0):
    sum=sum+(a%10)**count
    a=a//10
    if sum==n:
    print("number is Armstrong")
    else:
    print("number is not Armstrong")

  • @AHMAD-yd2ib
    @AHMAD-yd2ib Рік тому +1

    I HAVE A HUNDRED TIMES SIMPLER VERSION OF CODE : 🔥
    (Using just 2 while loops and a pair of if-else statements)
    n = int(input('enter a number: '))
    z = n
    k = n
    rev = 0
    count = 0
    while k>0:
    count += 1
    k = k//10
    while n>0:
    rev = rev + (n%10)**count
    n = n//10
    if rev == z:
    print('The number is Armstrong')
    else:
    print('The number is not Armstrong')

  • @mansirao5768
    @mansirao5768 6 місяців тому

    i'm not getting this program , it is lengthier so i would prefer the previous way. although thanks for the explanation sir..

  • @4k45hxd9
    @4k45hxd9 4 роки тому +1

    Sir iske phle wala mathod bhi sahi h na ?

    • @codeitup
      @codeitup  4 роки тому +2

      Wo sirf 3 digit numbers ke lie tha, ye any number of digit ke lie hai.

    • @4k45hxd9
      @4k45hxd9 4 роки тому +1

      @@codeitup okk sir thanks

  • @lovelyaggarwal9828
    @lovelyaggarwal9828 4 роки тому +1

    Sir m programming 1st tym kr rhi hu..in formula ko learn krna padta h kya..?

    • @codeitup
      @codeitup  4 роки тому +2

      Yes Lovely, kuch formula aapko yaad karne hoge.

  • @AMRITPALSINGH-so2lj
    @AMRITPALSINGH-so2lj 4 роки тому +1

    n=int(input("ENTER NUMBER:"))
    i=n
    count=0
    while(i>0):
    i=i//10
    count=count+1
    i=n
    sum=0
    while(i>0):
    sum=sum+(i%10)**count
    i=i//10
    if(sum==n):
    print("ARMSTRONG")
    else:
    print("NOT ARMSTRONG")

    sir aisa kar sakte hai?

    • @codeitup
      @codeitup  4 роки тому

      Yes, kar sakte hai !

  • @Juhi1910
    @Juhi1910 4 роки тому

    Thank you sir

  • @debarghyaadhikari5558
    @debarghyaadhikari5558 3 роки тому

    NICE SIR

  • @Ansh_Rajpoot_
    @Ansh_Rajpoot_ 4 роки тому

    Sir can we use len () function instead of looop

    • @codeitup
      @codeitup  4 роки тому

      Yes you can ! But in exams you can not use pre defined functions.

  • @Iamkaran553
    @Iamkaran553 4 роки тому

    Sir mai 12th class mai hu , sir mai abhi python study kr rha hu 117 video lecture wali playlist dekh rha hu,to kya sir mujhe class 12 python wali bhi playlist dekhni pdegi, in dono playlist mai same content ya different hai

  • @rounakverma8115
    @rounakverma8115 11 місяців тому

    Thanks sir

    • @codeitup
      @codeitup  11 місяців тому

      Welcome Rounak!

  • @skybird7274
    @skybird7274 2 роки тому

    i=int(input("enter the number"))
    o=i
    count=0
    while (i>0):
    i=i//10
    count+=1
    i=o
    sum1=0
    while (i>0):
    sum1=sum1+(i%10)**count
    i=i//10
    if sum1==o:
    print("YES")
    else:
    print("NO")

  • @harshasri3711
    @harshasri3711 2 роки тому

    Excellent teaching but please teach in English also.....

  • @MrKP-nm3qy
    @MrKP-nm3qy 3 роки тому

    Sir amstrong wali ek or vdo h jisme ek particular cube k condition p h kya wo bhi shi h kya

    • @codeitup
      @codeitup  3 роки тому

      Wo sirf 3 digit number ke lie hai...

  • @AmanBaba-v3e
    @AmanBaba-v3e Рік тому

    Sir ye BCA valo ke according h na

  • @aryasharma5571
    @aryasharma5571 4 роки тому

    sir isse phle bhi ek video hai armstrong ki....usme count variable ke bina karvaya hai apne.
    which one is more correct?🙂😃

    • @codeitup
      @codeitup  4 роки тому

      Last video is for 3 digit only. This video is for any number of digit. SO, this program is better.

    • @aryasharma5571
      @aryasharma5571 4 роки тому

      @@codeitup thanx sir❤️❤️..

  • @AmanBaba-v3e
    @AmanBaba-v3e Рік тому

    Bhout easy h

  • @ShadabAnsari-dt4ni
    @ShadabAnsari-dt4ni 3 роки тому

    i=int(input('enter value'))
    org=i
    count=0
    while i>0:
    i=i//10
    count=count+1
    org=i
    sum=0
    while i>0:
    digit=i%10
    x=1
    prod=1
    while x>=count:
    prod=prod*digit
    x=x+1
    sum=sum+prod
    i=i//10
    if org==sum:
    print('Arm')
    else:
    print('Not Arm')

  • @Anitarawat03
    @Anitarawat03 Рік тому +1

    Century comment🎉

  • @meow-rd6op
    @meow-rd6op 4 роки тому

    Sir previous armstrong ki video mai toh kuch aur coding thi?

    • @codeitup
      @codeitup  4 роки тому +1

      Previous coding sirf 3 digit number ko hi armstrong ke lie check kar sakta tha. Ye any number of digit ke lie hai.

    • @meow-rd6op
      @meow-rd6op 4 роки тому

      @@codeitup ohkh sir.thnx

  • @abhinavkislay9442
    @abhinavkislay9442 4 роки тому

    Sir can u please make playlist on oops also

    • @codeitup
      @codeitup  4 роки тому

      Sure but it will take some time !

  • @sunnyyadav4664
    @sunnyyadav4664 4 роки тому

    sir regular expression pe series bnado please

  • @sanchitapadole3512
    @sanchitapadole3512 2 роки тому

    Sir exercise bhi diya kro..

  • @meow-rd6op
    @meow-rd6op 4 роки тому

    💥💥

  • @Ansh_Rajpoot_
    @Ansh_Rajpoot_ 4 роки тому +1

    Sir please make a whats app group for this course

  • @Bachlersdesifoodvlogs
    @Bachlersdesifoodvlogs 2 роки тому

    bhai sahab agar ese coding sikhoge toh jo ata hoga vo bhi bhul jaynge
    ye itna complicated nahi hai jitna apne bana diya

  • @rameshchandsharma6015
    @rameshchandsharma6015 4 роки тому

    Sir video banate rahie

  • @atulsharma2490
    @atulsharma2490 4 роки тому

    Ye muskil lag Raha he sir ji...koi or method ho to bataye

    • @codeitup
      @codeitup  4 роки тому +1

      Armstrong ka program hota hi thora complex hai. Bas video, 2-3 baar dekhie with full concentration and I am sure aapko samajh aa jaega..

    • @atulsharma2490
      @atulsharma2490 4 роки тому +2

      Sir Aapke video achche se samaj aa rahe he....thanks.👍👍👍...Mera ek sawal he abi recently mere pas PC nhi he.. kya ye aap k samjhye hue program Android pr Chala sakta hu ? Kese? Or ye Jupiter note book par bhi aap k program run ho jayege?

    • @codeitup
      @codeitup  4 роки тому

      @@atulsharma2490 You can use QPython app to run the python programs in Android. Yes, all these programs may run on Jupyter.

    • @codeitup
      @codeitup  4 роки тому

      @@atulsharma2490 You may use QPython app to run all the python programs in mobile.

    • @codeitup
      @codeitup  4 роки тому

      @@atulsharma2490 You can run all python programs in an App called QPython.

  • @GarywinBhullar
    @GarywinBhullar Рік тому

    Complicated video

  • @mayanksinghbhadoria5808
    @mayanksinghbhadoria5808 Рік тому +1

    thank you sir