Python Program to Reverse of a Number - In Hindi

Поделиться
HTML-код
  • Опубликовано: 4 янв 2025

Комментарии • 315

  • @udaykhunt925
    @udaykhunt925 4 года назад +119

    Though my school teacher might have done some advanced course in his career in computers,but you are the best explainer ever on this planet

    • @codeitup
      @codeitup  4 года назад +6

      Thanks for such a lovely comment!

    • @ankitduvedi9828
      @ankitduvedi9828 3 года назад

      Love you sir

    • @bhaktisongs8584
      @bhaktisongs8584 Год назад

      ​@@codeitup sir can we convert the no Into string and then reverse by ::-1

  • @debatradas1597
    @debatradas1597 3 года назад +17

    Hello, I've completed B.Sc and M.Sc in Statistics. Now I'm preparing for Data Science.
    After following your channel, now I've clear concepts of so many things. Thank you so much, Sir!

    • @ZibaFact
      @ZibaFact Год назад +3

      Now , how are you after 1 yr

    • @chowdarynagavenkatesh1506
      @chowdarynagavenkatesh1506 Год назад +2

      Have u got the job in data science????

    • @debatradas1597
      @debatradas1597 Год назад +1

      Hi all, I'm happy to share that I got selected as a Data Analyst by the end of 2021

    • @ishanbhalerao646
      @ishanbhalerao646 Год назад

      On which company Please help me to guide I am also preparing for data science

    • @SportsMaina1
      @SportsMaina1 3 месяца назад

      how much salary you get in data science...??

  • @priyanshuparmar1168
    @priyanshuparmar1168 5 лет назад +28

    Sir , I am Priyanshu , a student of cs in class 11 science.
    i was not able to understand this program by just reading by my book .
    this video cleared my all doubt .
    thanks a lot!!!!!!!!!

    • @codeitup
      @codeitup  5 лет назад +2

      Thanks Priyanshu!

    • @ayaanraza1760
      @ayaanraza1760 Год назад

      Hyy priyanshu

    • @KrishnaSkelet0n
      @KrishnaSkelet0n 2 месяца назад

      hii priyanshu is it suffiecient for 12th grade

    • @Hmm-g5u
      @Hmm-g5u Месяц назад +1

      Hi what are u doing now priyanshu

  • @mandardesai7716
    @mandardesai7716 3 года назад +7

    Thanks sir, I was stuck on this program for many days you explained it nicely.

    • @codeitup
      @codeitup  3 года назад

      My pleasure.. Keep learning Mandar!

  • @soudhabanu6088
    @soudhabanu6088 4 года назад +5

    Started to learn python after seeing your videos...your way of explaining is toooo goood sir👍🏻 thank u so much🙏🏻

    • @codeitup
      @codeitup  4 года назад

      Thanks a ton dear. All the best... 🙂

  • @tanmaychimankar850
    @tanmaychimankar850 6 месяцев назад

    By watching your videos... I am gaining my confidence on logic building❤️💯

  • @divyanshkishore7050
    @divyanshkishore7050 4 года назад +2

    You explained everything very deeply. I am Finding this content for many days. Today I found it.
    Thank You,Sir

    • @codeitup
      @codeitup  4 года назад +1

      You are most welcome Divyansh !

  • @74mohdahmerkhan70
    @74mohdahmerkhan70 3 года назад +6

    Sir u r the best and humble teacher i have ever saw insha'Allah you achieve success one day . Allah bless you ❤️💫

    • @codeitup
      @codeitup  3 года назад

      Thank you so much Ahmer, keep learning😊

  • @dibyanayak3455
    @dibyanayak3455 Год назад

    Sir you are such a very good explainer..... Your videos are very helpful😊😊😊

  • @ayeshasaleem647
    @ayeshasaleem647 3 года назад +3

    This was so easily explained and the concepts were made really clear thank you so much for this video may god bless you.

    • @codeitup
      @codeitup  3 года назад

      Most welcome Ayesha... Keep learning😊

  • @aaryaa2006
    @aaryaa2006 2 года назад +8

    Thankyou sir, you're just amazing.. I just can't thank you enough. The kind of help you are doing for us and the efforts you are putting in is commendable..✨✨

    • @codeitup
      @codeitup  2 года назад +2

      Happy to help you keep learning🙂
      God bless you!

  • @Srs-u8h
    @Srs-u8h Месяц назад

    Bhai aapki video shandar rahti hai aapki har video mein dekhta hun aur I like❤❤❤❤❤ your video too much thank u bro you are so gorgeous and your teaching is too much gorgeous thank u bro for support me in IP

  • @saritavirha9809
    @saritavirha9809 2 года назад

    Amazing sir 😁😁
    Ek hi bar m samjh agya

  • @babamusic8538
    @babamusic8538 Год назад

    Wah !! Great sir ❤gjab maja aa gya

  • @mridulghoshshanto5472
    @mridulghoshshanto5472 2 года назад +1

    Great explain Sir , you save my lots of time ..... love from bangladesh :)

    • @codeitup
      @codeitup  2 года назад

      Thanks Mridul, keep learning😊

  • @vineetsingh7547
    @vineetsingh7547 2 года назад +1

    Best explain,Sir thank you 😊

    • @codeitup
      @codeitup  2 года назад

      Thanks & most welcome Vineet!

  • @priyankagupta9649
    @priyankagupta9649 Год назад +1

    Thanks a lot sir i have a lot of doubt but all is clear thanks sir a lot ❤❤

    • @codeitup
      @codeitup  Год назад

      Most welcome Priyanka!

  • @BABLISINGH-wf8dw
    @BABLISINGH-wf8dw 5 лет назад +4

    Good going sir. One day your channel will rock!

    • @codeitup
      @codeitup  5 лет назад

      Thanks babli. Keep supporting...

  • @Anjali_789
    @Anjali_789 Год назад +1

    Thanks a ton sir...uh are flawless...pranam🙇🥲

  • @adityapal8577
    @adityapal8577 3 года назад

    👌👌 better than my professor

  • @priyankeshjha7753
    @priyankeshjha7753 3 года назад

    My phython improved because of you sir ,thanks a ton 😀😀

    • @codeitup
      @codeitup  3 года назад

      So nice of you Priyankesh!

  • @navitaagrawal756
    @navitaagrawal756 Год назад +7

    You can convert the number to a string, and then use string slicing method like string[ : :-1].

  • @kacademy7921
    @kacademy7921 Год назад

    Thank you, Sir. Please keep making videos for us young coders.

  • @samikshaandmom9808
    @samikshaandmom9808 2 года назад +1

    Thank you sir 👍 it was very easy to understand.

    • @codeitup
      @codeitup  2 года назад

      Most welcome, keep learning😊

  • @ojasgude2568
    @ojasgude2568 5 лет назад +2

    It was well explained 😀😀

  • @abskamo7483
    @abskamo7483 4 года назад +4

    Oh wow what a explanation I'm in class 12 my problem is I just can't think of these logics by myself as soon as I watch the explanation I can understand it very well but actually can't think of it by my own ... again thank you for your good efforts I subbed 😀😀👏👏

  • @ratanthakur2021
    @ratanthakur2021 4 года назад +1

    Sir superb job
    You are going to be a master of teachers please continue it .it is my gut feeling that you will some day become very famous CS teacher

    • @codeitup
      @codeitup  4 года назад

      Thank you so much Ratan for the complement. Keep Learning !

  • @MrMukulpandey
    @MrMukulpandey 3 года назад +8

    Sir if possible please make a series of python programming through examples......full playlist containing examples from scratch to advance 🙏🙏

  • @anubala895
    @anubala895 2 года назад

    Your videos are really helpful thanks

    • @codeitup
      @codeitup  2 года назад

      Glad to help you😊

  • @ayushsaini2796
    @ayushsaini2796 Месяц назад

    well explained sir. thanQ so much sir

  • @dishaaswani93
    @dishaaswani93 4 года назад +2

    SIR BOHOT MAST SAMJHAYA THANKSS

  • @brightfunzone7619
    @brightfunzone7619 3 года назад +2

    Sir agar isko function define kr ke krana ho tho bs def reverse: ke andar program likh denge sir ya aur kohi change aya ga

  • @tanmaychimankar850
    @tanmaychimankar850 6 месяцев назад

    Sirrji tusi Great Ho🙇🏻🥹❤️

  • @sidj99
    @sidj99 3 года назад +1

    very very awesome. Disappointed to not enough subs to your channel. students should sub your channel definitely. keep up the good work.

    • @codeitup
      @codeitup  3 года назад +1

      Thank you so much dear.. God bless you!

  • @sudarshanmhaisdhune1039
    @sudarshanmhaisdhune1039 4 года назад

    Very good explanation bhai...love u a lot💓

    • @codeitup
      @codeitup  4 года назад

      Thank you so much 😀

  • @superstarjesal5060
    @superstarjesal5060 4 года назад +1

    A very nice explanation. Thank you sir

    • @codeitup
      @codeitup  4 года назад

      Thanks Pankaj. Pls share this channel with your friends.. :)

  • @Sagarmahyavanshi
    @Sagarmahyavanshi 4 года назад

    Thank you so much bhai....aeise he explain karte raho bhai...

    • @codeitup
      @codeitup  4 года назад +1

      Thanks Sagar. For Sure !

  • @apkharsh
    @apkharsh 4 года назад +1

    THANKS FOR HELPING MAN.

  • @rameshchandsharma6015
    @rameshchandsharma6015 4 года назад

    You are gem sir i salute youu

    • @codeitup
      @codeitup  4 года назад

      Thanks Ramesh ! God Bless you!

  • @xii_a_29_as__kumar_37
    @xii_a_29_as__kumar_37 3 года назад

    oo bhai bhoot aacha samjha h bhai

  • @suyashdongre
    @suyashdongre 4 года назад +1

    Bhai thank you so much I hope your channel will grow

    • @codeitup
      @codeitup  4 года назад

      Thanks dear. Help this channel to grow..

    • @suyashdongre
      @suyashdongre 4 года назад +1

      @@codeitup how much time it took u to become a professional coder cause I am going in the same field I am in class 10 right now please answer

    • @codeitup
      @codeitup  4 года назад +1

      @@suyashdongre See, its all your capability. However, for an average you need to devote at least 1 year to become a professional programmer. You need to specialize yourself in a particular language.

    • @suyashdongre
      @suyashdongre 4 года назад

      @@codeitup thanks

  • @pranitdavande2192
    @pranitdavande2192 4 года назад

    Sir aapki videos learning ke liye bahut easy hai.aap bahut achhe se sikhate hai.plz sir...python language se normal game kaise bnate hai .es per starting series vise installation se aage tak video bnaye plz...sir.plz sir reply kro

  • @praq6889
    @praq6889 5 лет назад +4

    sir, u explain so well

    • @codeitup
      @codeitup  5 лет назад +1

      Thanks dear. I try my best to keep everything clear. Keep Supporting.

  • @Aaron.muzikall78
    @Aaron.muzikall78 2 месяца назад

    Thank you so much sir good morning 🌄

    • @codeitup
      @codeitup  2 месяца назад

      Good morning, happy to help! 😊

  • @hitpremanandgovindsharanji
    @hitpremanandgovindsharanji 3 года назад

    Thankyou sirji cleared my doubts 🙏🏻🙏🏻

    • @codeitup
      @codeitup  3 года назад

      Most welcome Yogesh!

  • @sanju0550
    @sanju0550 Год назад

    Congratulations I'm your new subscriber💖

  • @chandrashekhernautiyal252
    @chandrashekhernautiyal252 4 года назад +1

    Very nice sir easily understood

  • @jadelkarchi3305
    @jadelkarchi3305 5 лет назад +2

    very interesting methode !!! i didn't thought about modulo

  • @shubhampaul443
    @shubhampaul443 3 года назад

    Thank you sir bohot ache se samjh aaya

    • @codeitup
      @codeitup  3 года назад

      Most welcome Shubham!

  • @anand9921
    @anand9921 4 года назад +2

    Great Explanation

    • @codeitup
      @codeitup  4 года назад

      Thanks @Anand Sharma

  • @infinityscience6697
    @infinityscience6697 Год назад

    You are best😍

  • @sunillodwal7658
    @sunillodwal7658 3 года назад

    Sir wow its was such a deep and clear explaination sir thanks u

    • @codeitup
      @codeitup  3 года назад

      Most welcome Sunil!

    • @sunillodwal7658
      @sunillodwal7658 3 года назад

      Sir ek doubt hai sir how can i ask u in this question only

  • @evanslaffa4514
    @evanslaffa4514 3 года назад +2

    Even a non-Indian can understand. Nice video 🙂

  • @tanveerbibi6474
    @tanveerbibi6474 Год назад

    Very nice video hai 😍☺️

  • @ishikaishika8794
    @ishikaishika8794 4 года назад +2

    U r the best teacher whom i am searching since starting of 12th ...🙄 bdi der s mile ho aap lkin mujhe...
    I am very worried about computer board exam😭😭😭

    • @codeitup
      @codeitup  4 года назад

      Don't worry, der aae durust aae !

  • @arpitapandey8645
    @arpitapandey8645 Год назад

    Thank u soo much sir 🙏♥️

  • @keshavchaudhary62
    @keshavchaudhary62 3 года назад

    Great explanation
    Thanks

  • @er.sh.b.rranjan138
    @er.sh.b.rranjan138 4 года назад +1

    Good one🙏

  • @snehamishra619
    @snehamishra619 3 года назад

    great explanation bro..keep growing

    • @codeitup
      @codeitup  3 года назад

      Thanks a lot Sneha!

  • @manishagupta174
    @manishagupta174 4 года назад

    Explained really well

    • @codeitup
      @codeitup  4 года назад

      Thanks Manisha. Keep Learning !🙂

  • @DMKenKaneki
    @DMKenKaneki Год назад +1

    easiest code
    n=int(input("number:"))
    while n>0:
    i=n%10
    k=i
    print(k,end="")
    n=n//10

  • @arunjoshan775
    @arunjoshan775 3 года назад

    Best explanation

  • @RKEntertainment1818
    @RKEntertainment1818 Год назад

    Awesome bhai

  • @nabh_agrawal
    @nabh_agrawal 3 года назад +2

    thnks for the video , but i noticed one thing , apka typing speed kuch jyada hi fast hai ! amazing typing speed ! Really never seen before such typing speed ! I wanna also make typing speed like you ?

    • @codeitup
      @codeitup  3 года назад +1

      So nice of you dear😊

  • @meow-rd6op
    @meow-rd6op 4 года назад

    Nice explanation!

    • @codeitup
      @codeitup  4 года назад

      Thanks Abhishek !

  • @mrjharkhandi1
    @mrjharkhandi1 5 лет назад +1

    Well explained, keep it up

    • @codeitup
      @codeitup  5 лет назад

      Thanks Mr. jharkhandi. Keep Supporting.

  • @devansh_play_rdxrdx128
    @devansh_play_rdxrdx128 4 года назад +2

    Thanks sir a lot

  • @codinghub1087
    @codinghub1087 2 года назад +1

    bhai sahab i just shock after watching this videos that this is that much easy 😂😂i perform iterations from the long intervals bt gets understand here

  • @Fariz124
    @Fariz124 3 года назад +3

    n=int(input('Enter the no.'))
    y=str(n)
    g=y[::-1]
    print(int(g))
    Try this bro😊

    • @AnonGmr
      @AnonGmr 3 месяца назад

      This works?

    • @Fariz124
      @Fariz124 3 месяца назад

      @@AnonGmr yeah bro it do works

    • @AnonGmr
      @AnonGmr 3 месяца назад

      @@Fariz124 thanks

  • @jaskaran_.singh_
    @jaskaran_.singh_ 3 года назад

    U r best

    • @codeitup
      @codeitup  3 года назад

      Thanks a ton Jaskaran!

  • @dopamine7886
    @dopamine7886 4 года назад

    nice explanation , thankyou

    • @codeitup
      @codeitup  4 года назад

      Welcome Aayush ! Keep Learning !

  • @sachintandon6058
    @sachintandon6058 4 месяца назад

    superb

  • @easycoder918
    @easycoder918 Год назад

    Thanks for 🎉

  • @akashThe99
    @akashThe99 2 года назад +1

    Guruji 🙏

  • @sanketr9434
    @sanketr9434 3 года назад +7

    How you came to know we have to do i*10 and i%10 to slove the sum?

  • @deepmalanigam7995
    @deepmalanigam7995 2 года назад +1

    Ty❤️

  • @mahakkhan5262
    @mahakkhan5262 3 года назад +4

    4 hr before exam😂

  • @deepanshu_2004
    @deepanshu_2004 4 года назад +1

    Sir the way you have explained is brilliant but can't we make it by FOR LOOP .
    If Yes please give the syntax

    • @codeitup
      @codeitup  4 года назад +2

      Deepanshu, many questions are there which can't be made using for loop.

    • @deepanshu_2004
      @deepanshu_2004 4 года назад +1

      @@codeitup Okay Sir. Thanks for answering.

  • @aashishgupta1580
    @aashishgupta1580 2 года назад +1

    Sir, if we type 0 at one or more times this will not in output

  • @assassinblade7412
    @assassinblade7412 3 года назад +1

    Sir agar ham input 2340 ya 2304 kare ge toh fir i>0 condition toh false ho jaye ga ..sir pls explain zero ke kaise deal kare

  • @madanraj5571
    @madanraj5571 Год назад +1

    Sir add tutorial number at beginning of the headline... finding difficult to find exact tutorial

  • @filmyworld145
    @filmyworld145 3 месяца назад

    Salute

  • @kajalgoswami5619
    @kajalgoswami5619 2 года назад +1

    Tq sir

  • @vrajbhatt4900
    @vrajbhatt4900 3 месяца назад

    i=int(input("Enter a Number"))
    rev=0
    while (i>0):
    rev=(rev*10)+i%10
    i=i//10
    print("Reverse=",rev)

  • @poonamtiwari1093
    @poonamtiwari1093 3 года назад +1

    Direct reverse ka v use kr sakte h

  • @faizalkhalifa9187
    @faizalkhalifa9187 3 года назад

    Thank sir

    • @codeitup
      @codeitup  3 года назад

      You're welcome😊

  • @apna_Vaibhav
    @apna_Vaibhav 4 года назад +1

    Helpful !!!!

    • @codeitup
      @codeitup  4 года назад

      Glad it was helpful !

  • @Sameen-j4q
    @Sameen-j4q Год назад

    why are we taking rev=0 ??
    please reply sir im new to coding

  • @mayureshrawal
    @mayureshrawal 5 лет назад +4

    NOICE

  • @Euphoria__250
    @Euphoria__250 3 месяца назад

    Mera kal exam or python mai smjh/intrest ab aa raha hai 😂

  • @narasinghabehera2010
    @narasinghabehera2010 4 года назад

    Good

  • @kadriiqbal3560
    @kadriiqbal3560 2 месяца назад

    Sir why multiplyed by 10 please reply 🙏 i am beginner

  • @chaitanyavagdandam1863
    @chaitanyavagdandam1863 2 года назад

    how to do it for multiple inputs at once

  • @shrutism6839
    @shrutism6839 5 лет назад +2

    sir if in while loop we give the condition like this [while i:] then is it similar to [while i>0:] sir pls reply

    • @codeitup
      @codeitup  5 лет назад +1

      Yes, any other value than 0 is considered as true. So both conditions are same.

    • @shrutism6839
      @shrutism6839 5 лет назад

      @@codeitup thanks sir

    • @ashishsrivastava371
      @ashishsrivastava371 3 года назад +1

      @@codeitupSir I didn't know what is this [ while i:]...

  • @skimis6019
    @skimis6019 3 года назад +1

    sir, why we written rev=0 ??

  • @ishanbhalerao646
    @ishanbhalerao646 Год назад

    If user enters -ve no as input then it reverses or not?

  • @caankitrmehta2281
    @caankitrmehta2281 Год назад

    If i dont want to round off numbers and get it as it is.. What to do... Long numbers like 0205001616171717 gets rounded off to 0205002 in python. But we dont want like that. We want full number. How to do in python coding

  •  3 года назад

    well explained sir, thanks.
    But there is a query regarding this.
    a=int(input("enter the number: "))
    rev=0
    while (a>0):
    rev=(rev*10)+a%10
    a=a//10
    print("reverse= ",rev)
    i'm getting it's reverse, but output is like:
    enter the number: 123 (i entered)
    reverse= 3
    reverse= 32
    reverse= 321
    i'm getting like this sir, i am doing this on VScode.
    pls help me out sir pls

    • @codeitup
      @codeitup  3 года назад

      The last print statement won't be in the loop. Write the last print statement out of the loop.

    •  3 года назад

      @@codeitup ohhh.. Thanks sir

  • @saratkumarpradhan1994
    @saratkumarpradhan1994 5 месяцев назад

    How can solve this using for loop

  • @Ansh_Rajpoot_
    @Ansh_Rajpoot_ 4 года назад

    sir why we do not set the the rev to 1

    • @codeitup
      @codeitup  4 года назад +1

      Because, this is the logic, if we will set rev to 1, it won't give desired result.