#63 Python Tutorial for Beginners | Exception Handling

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ธ.ค. 2024

ความคิดเห็น • 430

  • @srikanth-ry8lp
    @srikanth-ry8lp 4 ปีที่แล้ว +35

    mamulu racha kadu, I was almost ready to pay for python classes and i found this channel. THE BEST channel to learn coding.

  • @sahej97
    @sahej97 5 ปีที่แล้ว +54

    Sir your teaching style is innovative and the tidbits that you say in-between is what makes you a great teacher.
    I've been taught by many teachers and I can say the level at which teach, for which other teachers get paid a lot, but you deliver all this for free is commendable.
    Thank you very much Sir for rejuvenating my passion for Python.

  • @aryanfalke5751
    @aryanfalke5751 5 ปีที่แล้ว +68

    I literally learned the entire python language through your videos. Tysm for great videos and simplified explanation

  • @ShoaibKhan0701
    @ShoaibKhan0701 5 ปีที่แล้ว +69

    Itna to college wale bhi nahi karate jitna navin ji samjha dete h ❣️❣️❣️

  • @vojtechbrecka201
    @vojtechbrecka201 3 ปีที่แล้ว +6

    So I am slowly approaching the end of your Python course, Sir, and I have to thank you. I have started just a few weeks ago as a total beginner, and because of you, I can now write a simple applications, and (and that's most important) I can think as a programmer which made learning other languages a lot easier for me. Thank you, Sir Navin Reddy

  • @akashsahni9407
    @akashsahni9407 6 ปีที่แล้ว +192

    Mr Perfect = Navin Reddy Sir

    • @Busy_mind24
      @Busy_mind24 2 ปีที่แล้ว +1

      Python=Navin reddy sir💕

  • @AshrafulHussainKhan
    @AshrafulHussainKhan 3 ปีที่แล้ว +6

    It was always confusing for me about the error handling. You made it crystal clear today. I like your simplicity in teaching complex concepts.

  • @jindaldreams
    @jindaldreams 4 ปีที่แล้ว +5

    Great explanation.
    Also I like all your catch phrases. Eg, "Hold on" and "For those with Java, C++ background will be familiar with this" and "You might be wondering" and "What would happen if" and "Oh thats weird, what if i do this.."

  • @giuseppepala8668
    @giuseppepala8668 5 ปีที่แล้ว +6

    "The general doctor" 👍
    Nicely put. My compliments!

  • @madhavaprashath1453
    @madhavaprashath1453 5 ปีที่แล้ว +6

    i wish i had a teacher like u in my school!!!!!!!!!!!!

  • @sam.mankar
    @sam.mankar 5 ปีที่แล้ว +104

    Telusko = 1
    Navin_Reddy_Sir = 100
    try:
    print("Telusko + Navin_Reddy_Sir")
    except:
    print("you don't have any errors, Sir.")
    finally:
    print("you are still the best")

  • @sujalsubramani1543
    @sujalsubramani1543 2 ปีที่แล้ว +1

    u made easier sir better than my teachers or frnds thanks a lot

  • @t11oaa8
    @t11oaa8 3 ปีที่แล้ว +2

    Can I like this a million times? Thank you Telusko!

  • @attilapaucsa4875
    @attilapaucsa4875 3 ปีที่แล้ว +4

    Thank you very much for this tutorial! It was that part of coding what I have never understood exactly, until I've seen your video!

  • @karthick2237
    @karthick2237 5 ปีที่แล้ว +3

    The best video for Exception handling in TH-cam. Nailed it sir.

  • @bubblebath2892
    @bubblebath2892 8 หลายเดือนก่อน +1

    You really have a knack for teaching ...brilliant

  • @danielkamau8436
    @danielkamau8436 4 ปีที่แล้ว +3

    A good class that can easily confuse if one is not careful.....otherwise you are Mr Good in this field, as a starter, I feel challenged to when I will be there. Again thanks to my classmates because the comments we write here are also resourceful by far when I read, understand and
    run them, I get informed of extra things. Big up guys.

  • @dinosaurcage7682
    @dinosaurcage7682 20 วันที่ผ่านมา +1

    Nice explanation and great examples will surely recommend this video for my other friends as well ❤

  • @Jdjdhsgxuxu
    @Jdjdhsgxuxu 3 ปีที่แล้ว +1

    You’re the best teacher in the world. Tutors in Udemy should take note from this lovely man.

  • @054_ritesh3
    @054_ritesh3 4 ปีที่แล้ว +2

    I have started loving python because of your teaching sir hats off to you🙏🙏🙏🙏🙏

  • @codex8332
    @codex8332 4 ปีที่แล้ว +2

    The most intriguing and easy going class so far

  • @rahulprasadsingh2639
    @rahulprasadsingh2639 4 ปีที่แล้ว +2

    a=5
    b=2
    try:
    print("resource open")
    print(a/b)
    k=int(input("enter a number"))
    print(k)
    except ZeroDivisionError as e:
    print("Hey, you cannot divide a number by zero",e)
    except ValueError as e:
    print("Invalid input", e)
    except Exception as e:
    print('something went wrong...',e)
    finally:
    print('resource closed')

  • @robo_tech
    @robo_tech 4 ปีที่แล้ว +1

    Navin Sir I am just a 15-year-old kid interested in programming. In school, we are taught JAVA language. I know the basics but still, you teach so well that in my 10th grade currently sitting at home during the lockdown I stay awake until 11:00 pm after completing the studies just because u teach with so many interesting real-life examples. So just love the way u teach. I have watched 63 videos in 8 days. I am really enjoying. Thank u!!!!!!!!

    • @robo_tech
      @robo_tech 4 ปีที่แล้ว

      @Aanshumaan Shrijai VII C Roll No. 37 Thats Good!! I was told one thing you know by one of my connections on LinkedIn just to motivate you here is the thing:
      Udit Rathod
      You should explore never stop exploring ... just keep in mind you have to be Dora the explorer because that's what I do.
      That's the man UDIT RATHOD who told me pretty inspiring things!! If possible connect with me on LinkedIn we can discuss a lot of things!! You can also get ideas from me we can exchange challenges lot more.

    • @robo_tech
      @robo_tech 4 ปีที่แล้ว

      @Aanshumaan Shrijai VII C Roll No. 37 Then how can we be in contact?

  • @priyasoni4531
    @priyasoni4531 4 ปีที่แล้ว +3

    Sir you are great with thier easy explanation.i learn most of the thing in python for your channel .it is very good and easy to understand.
    Thank you sir...

  • @vigneshkontam5742
    @vigneshkontam5742 10 หลายเดือนก่อน

    very crisp explanation. Small and simple examples which I was easy to get an understanding, i.e the fridge concept= open a door take a bottle then close it.

  • @andressaa2180
    @andressaa2180 4 ปีที่แล้ว +5

    You're a great instructor, thanks for sharing these concepts in a way that beginners can actually understand :)

  • @ashvinsawarkar1399
    @ashvinsawarkar1399 ปีที่แล้ว

    00:08 Types of Errors in Python
    02:07 Runtime errors occur during execution and can be caused by user input, missing files, or network issues.
    04:01 Even if you get an exception or error, the execution should not stop.
    05:52 To solve the problems of user comprehension and execution stopping, use a try-except block in Python.
    07:52 Exception handling allows us to handle errors and execute alternate code when an error occurs
    09:41 Always ensure to close a resource that you open in a try block.
    11:35 Exception handling in Python allows execution of code, whether an exception occurs or not.
    13:39 Exception Handling in Python
    15:35 Exception Handling in Python with try, except, and finally blocks
    Crafted by Merlin AI.

  • @RavikanthTalakoti
    @RavikanthTalakoti 4 ปีที่แล้ว +2

    Nice videos Navin sir
    These are very helpful to me. Thank you a lot for your hard work.

  • @karthick9408
    @karthick9408 4 ปีที่แล้ว +6

    A good teacher doesn't need a whole day for any good concept simply this much time is enough
    Thank you sir 👍

  • @philipdaseh9745
    @philipdaseh9745 4 ปีที่แล้ว +2

    You are a very good teacher, the way you explain with simplicity is awesome.

  • @neerajmythink
    @neerajmythink 3 ปีที่แล้ว

    Phenomenal explanation... This guy doesn't throw unhandled error.

  • @irlapatiavinash5208
    @irlapatiavinash5208 2 ปีที่แล้ว

    sir ,you have versatility in the teaching and i am lucky to see this channel

  • @rahilahmed2192
    @rahilahmed2192 3 ปีที่แล้ว +1

    Great teaching style sir all doubts are clear👌👌👍👍👍👍🎂

  • @navinn.luthrianavinn.luthr9532
    @navinn.luthrianavinn.luthr9532 3 ปีที่แล้ว +2

    Hello Sir your way of teaching and the presentation is amazing 👍👍

  • @s.abirami8394
    @s.abirami8394 2 ปีที่แล้ว

    Everytime I view your tutorials I just make sure make sure to click that big fat like button and I move to watch that video you're simply awesome it's just a crystal clear thankyou sir

  • @poojaupadhye340
    @poojaupadhye340 ปีที่แล้ว

    I m learning python 1st time from your Chanel .. it’s really helpful ..thank you sir

  • @ParthTagalpallewar
    @ParthTagalpallewar 3 ปีที่แล้ว +1

    Sir your videos clearly shows you interest in learning new techs and the deep knowledge you have

  • @JahanzaibNiazi
    @JahanzaibNiazi 3 ปีที่แล้ว

    You have cleared that concept of try and catch in a best possible way. I was lot of confused in that exception topic but you have cleared the every thing. hats off to you sir. And your way of teaching is absolutely excellent.

  • @GaneshPrema
    @GaneshPrema 5 ปีที่แล้ว +1

    Very clear explanation Sir...Thanks a Lotttttttttttttttttttt Sir

  • @Imran20091990
    @Imran20091990 2 ปีที่แล้ว

    It's always good practice to write specific exception which we aware. If we don't know what kind of error will occur then Parent Exception.. Taught by Naveen Automation Labs.. same theory by Naveen Reddy.. Both were awesome in teaching.. 👍👍👍

  • @prathibharejeev1926
    @prathibharejeev1926 ปีที่แล้ว

    Navin your videos are amazing.
    Navin, please specify else block as well. i.e, try block for checking any error, except block will handle the error, else block will execute if there is no error, and finally block will excecute regardless the result of try and except block.

  • @rudriacharya7344
    @rudriacharya7344 3 ปีที่แล้ว

    i was struglling with this topic from long time. u made it just like clear water. thank u

  • @yaweli2968
    @yaweli2968 2 ปีที่แล้ว

    This is how you teach. keep it basic/simple. Thanks, great job.

  • @rezamostafid8810
    @rezamostafid8810 2 ปีที่แล้ว +1

    Hi Navin,
    you throw in a lot motivational points and give us a very clear picture of what exceptions are, why you might need them and you provide basic usage of the python 'try'-'except' construct. Very well done! Now I feel fully prepared to try out some examples myself ( which I have already ...) as well as explore the nitty gritty details in the python documentation for specific applications and problems. WELL EXPLAINED, WELL DONE and THANK YOU!!

  • @ragasudha24
    @ragasudha24 3 ปีที่แล้ว

    Fridge example 👏🏻👏🏻 is very practical
    Thank you Sir!!

  • @amalal-suhaimi9810
    @amalal-suhaimi9810 5 ปีที่แล้ว +1

    u r great .. i got ur explanation from a first time without repeat the video 😍 thank u so much ❤️

  • @salimakhtar1716
    @salimakhtar1716 ปีที่แล้ว

    I love your teaching style, clear and and easy to understand

  • @RockIT1
    @RockIT1 4 ปีที่แล้ว +1

    *Best video in this topic*
    Thank You Sir

  • @chairfacenope5836
    @chairfacenope5836 15 วันที่ผ่านมา

    I didn't feel like a complete moron while watching your video about handling exceptions. Thank you for making this accessible to noobs like me :)

  • @devil_5678
    @devil_5678 5 ปีที่แล้ว +2

    I understand this topic only by ur video, thanks a lot

  • @mrcreations1033
    @mrcreations1033 3 ปีที่แล้ว

    Sir 🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻The way you are teaching 👌🏼👌🏼👌🏼👌🏼NAA buthoo na bavishyath🤝🤝🤝🤝✊✊

  • @shubhamgohel007
    @shubhamgohel007 2 ปีที่แล้ว +5

    Navin sir :- God of Programming for me.....Helped me get through interview and many concept 😘

  • @venkataraokola3868
    @venkataraokola3868 ปีที่แล้ว

    your explanation is great sir. understood the whole concept clearly
    thank you

  • @amrutashinde5971
    @amrutashinde5971 3 ปีที่แล้ว

    YOU ARE AND YOUR TEACHING IS REALLY GREAT SIR

  • @koollguyy
    @koollguyy 3 ปีที่แล้ว

    Great examples Naveen. The doctor and fridge comparisons really made it easy to understand!!

  • @jitendraraghuwanshi1365
    @jitendraraghuwanshi1365 5 ปีที่แล้ว +1

    Best video so far

  • @Praveen-qs4ch
    @Praveen-qs4ch 3 ปีที่แล้ว

    Thanks for giving free excellence course for all

  • @anirbanc88
    @anirbanc88 2 ปีที่แล้ว

    the practical world understanding of software world you provide as in explaining finally snippet is awesome man, too too cool man

  • @anshi6205
    @anshi6205 4 ปีที่แล้ว

    I learnt all python by you... thank you so much....very helpful videos for me...

  • @adarshtiwari7395
    @adarshtiwari7395 4 ปีที่แล้ว +1

    This was so much effective for my learning. It helped a lot. Effortless teaching

  • @tannusharmaxiib3637
    @tannusharmaxiib3637 5 ปีที่แล้ว +3

    Nice explanation sir.... Thank u so much🤗

  • @ankitkumaryadav562
    @ankitkumaryadav562 3 ปีที่แล้ว

    Very nice and clear explanation. the main thing is it's a very short video as compare to other creater.

  • @gulshankhanna5621
    @gulshankhanna5621 4 ปีที่แล้ว

    Best explanation that i have ever seen on youtube

  • @avijitmazumder6314
    @avijitmazumder6314 3 ปีที่แล้ว

    Amazing Teaching skill. God bless you sir.

  • @surajkottayi2451
    @surajkottayi2451 4 ปีที่แล้ว

    Python is interesting when u r taught by the right person 👍. (Navin sir)

  • @prashantsoroutw1753
    @prashantsoroutw1753 2 ปีที่แล้ว

    sir your teaching style is so good.

  • @febin6512
    @febin6512 ปีที่แล้ว +1

    Simply simplified my doubt

  • @__mus__
    @__mus__ 11 หลายเดือนก่อน

    Your teaching is so awesome 🎉

  • @educationpurpose7280
    @educationpurpose7280 2 ปีที่แล้ว

    Dear sir!
    you deserve much.
    Thanks a lot

  • @ramanak2213
    @ramanak2213 4 ปีที่แล้ว

    as you always mentioning about it, i will learn java after completion of this course, for sure.

  • @AdityaTumma_inducedfreak_
    @AdityaTumma_inducedfreak_ 4 ปีที่แล้ว

    Now I'm recollecting this topic which was taught in class and could make sense with more brevity and logic. Had I watched this earlier, I'd have scored more in exam.

  • @rajarshimandal3235
    @rajarshimandal3235 4 ปีที่แล้ว +1

    Just amazing 😀😀😀

  • @sairamgogu4081
    @sairamgogu4081 5 ปีที่แล้ว +1

    Tqq so much sir. You nailed it.i didn't understood this concept java but you made it clear in Python

  • @Perplexedsouvik
    @Perplexedsouvik 4 ปีที่แล้ว

    I am coming from a completely non CS background . That's why it's taking more time for me..but thanks to Navin sir that my concepts are getting cleared..

  • @ShyKaiju
    @ShyKaiju 4 ปีที่แล้ว +3

    thank you so much, i was able to figure out my hw because of this video

  • @karuppasamyhariharana4222
    @karuppasamyhariharana4222 3 ปีที่แล้ว

    Simplification in learning program called Telusko 💥

  • @Rubesh-ly4he
    @Rubesh-ly4he หลายเดือนก่อน

    Sir the way you explain is fantabulous❤I'm unable to describe you sir bcoz simply it's awesome🎉

  • @indomusic791
    @indomusic791 3 ปีที่แล้ว

    Excellent explanation. You are an extraordinary teacher🙏

  • @lalimarangwani6219
    @lalimarangwani6219 4 ปีที่แล้ว

    Best video ever seen for exception handeling

  • @anuragtiwary
    @anuragtiwary 5 ปีที่แล้ว +1

    Wow. A big thumbs up for this video. Made my day.
    Thank you.

  • @thinkwith_shannu
    @thinkwith_shannu 5 ปีที่แล้ว

    Waah you taught it in very understandable way. Super sir

  • @johanrosario4046
    @johanrosario4046 3 ปีที่แล้ว

    Really I really appreciate your skills and the way you teach.... It's really easy to grasp the topics which you teach............. Love you brother....... 👍👍👍👍👍... Keep it up

  • @swapnilraj1375
    @swapnilraj1375 4 ปีที่แล้ว

    Hey I want to say - You are awesome best 14 min invested ever good tutorial for exception

  • @statusvideos619
    @statusvideos619 3 ปีที่แล้ว

    Damn!! You have no idea how much you have helped me for my internals by your videos😃

  • @SurajSuresh007
    @SurajSuresh007 6 ปีที่แล้ว +24

    what is the need of finally: if we can just print('resource closed") outside will that make sense?

    • @donha475
      @donha475 5 ปีที่แล้ว +3

      I thought the same but it does look tidier to the eye... as a logical block of code before embarking on some other idea... kind of like paragraphs in writing prose...

    • @aryanfalke5751
      @aryanfalke5751 5 ปีที่แล้ว +10

      If you do not have the finally clause and you get an error the file won't close. Finally ensures that regardless of the errors taking place in the program , it would perform the task mentioned.

    • @BerozgaarIAS
      @BerozgaarIAS 5 ปีที่แล้ว +2

      @@aryanfalke5751 i think that u had failed to understand the question correctly. he is asking that what is the need of finally, if we just simply put the 'resource closed' statement outside all the blocks of try and except.

    • @raodyc
      @raodyc 4 ปีที่แล้ว +8

      Let just say in your except block you mentioned only 1 type of error ( Value error) and when you run the code you divided any number with 0
      In that case the "resource close" statement not going to run
      Finally: ensure that every last block of code execute even if there are multiple errors

    • @RockIT1
      @RockIT1 4 ปีที่แล้ว +1

      *See if you write 'resource closed' outside then it will get printed only when there is not an error because the execution stops when there is an error previously*

  • @anonymous25ja
    @anonymous25ja 4 ปีที่แล้ว

    Best python teaching.. Love the way of teaching...🖤🖤

  • @сойка-и8й
    @сойка-и8й 6 ปีที่แล้ว +9

    Sir...thank you for your python beginners tutorials...sir are you going to upload videos on python frameworks and advanced libraries... Like sckit learn numpy opencv etc..? please let me know sir...

  • @erick5171
    @erick5171 2 ปีที่แล้ว

    very clear and concise, awesome.

  • @shraddhakute1991
    @shraddhakute1991 4 ปีที่แล้ว

    Osum sir...m glad that I saw ur video... Now onwards will b following u....

  • @VIVEKKUMAR-cq8ef
    @VIVEKKUMAR-cq8ef 4 ปีที่แล้ว

    Sir ur teaching is really awesome.
    Thanku so much sir.

  • @nockk6570
    @nockk6570 4 ปีที่แล้ว +3

    Thank you so much man! You just saved my weekend!

  • @venkateshagraharapu1393
    @venkateshagraharapu1393 2 ปีที่แล้ว

    Very good explanation sir .thank you.

  • @muralikrishna3693
    @muralikrishna3693 3 ปีที่แล้ว

    Thanks Navin, Really helpful.

  • @anuragr5850
    @anuragr5850 2 ปีที่แล้ว

    Great teaching style! hats off for simplifying this concept✌

  • @gamestv4875
    @gamestv4875 4 ปีที่แล้ว

    I like the way you explain things.
    Nice video

  • @manaspatil4316
    @manaspatil4316 3 ปีที่แล้ว

    Also ,always write general Exception block after writing Dividebyzero,ValueError block ,etc block
    Bcoz if by mistake you write it first no matter how much block you write after it, it will always print statement in general exception block .

  • @butterflySpirit717
    @butterflySpirit717 4 ปีที่แล้ว

    Python is easy, you made it easier for me..Thanks

  • @yog_charya
    @yog_charya 3 ปีที่แล้ว

    Perfect example of learning and enjoying things

  • @danulasahitha9653
    @danulasahitha9653 2 ปีที่แล้ว

    Wow. Nice explanation. Thank you.........

  • @jiyauddinahmad6708
    @jiyauddinahmad6708 3 ปีที่แล้ว

    Sir, you are the boss. I'm really a big fan. The way you teach is exceptional