Exceptions in Python || Python Tutorial || Learn Python Programming

𝙎𝙩𝙖𝙮 𝙞𝙣 𝙩𝙝𝙚 𝙡𝙤𝙤𝙥 𝙄𝙉𝙁𝙄𝙉𝙄𝙏𝙀𝙇𝙔: snu.socratica.com/python Exceptions allow you to write code which may not work, and then handle the successful and failed cases separately. The four clauses in Python Exception handling are try, except, else, and finally. These give you the ability to handle an error (except), a success (else), or either (finally). Today we introduce the most common types of exceptions in Python, and then show you how to use all 4 exception clauses.
To learn Python, start our Python Playlist HERE:
bit.ly/PythonHelloWorld
Subscribe to Socratica: bit.ly/1ixuu9W
♦♦♦♦♦♦♦♦♦♦
We recommend:
Python Cookbook, Third edition from O’Reilly
amzn.to/2sCNYlZ
The Mythical Man Month - Essays on Software Engineering & Project Management
amzn.to/2tYdNeP
Shop Amazon Used Textbooks - Save up to 90%
amzn.to/2pllk4B
♦♦♦♦♦♦♦♦♦♦
Ways to support our channel:
► Join our Patreon : / socratica
► Make a one-time PayPal donation: www.paypal.me/socratica
► We also accept Bitcoin @ 1EttYyGwJmpy9bLY2UcmEqMJuBfaZ1HdG9
Thank you!
♦♦♦♦♦♦♦♦♦♦
Connect with us!
Facebook: / socraticastudios
Instagram: / socraticastudios
Twitter: / socratica
♦♦♦♦♦♦♦♦♦♦
Python instructor: Ulka Simone Mohanty (@ulkam on Twitter)
Written & Produced by Michael Harrison (@mlh496 on Twitter)
♦♦♦♦♦♦♦♦♦♦
Yoda, Star Wars The Exhibition, Madrid
commons.wikimedia.org/wiki/Fi...
Author: Daniel Huntley
♦♦♦♦♦♦♦♦♦♦

Пікірлер: 363

  • @Socratica
    @Socratica2 жыл бұрын

    Wear a Socratica Python shirt for good luck coding: shop.socratica.com/products/python-by-socratica

  • @ijeomaoguegbu9576
    @ijeomaoguegbu95765 жыл бұрын

    I swear I can't with these videos anymore.. Looooool '... where this mathematical sin was committed.' I absolutely love your videos, I'm glad to be a software engineer. These videos remind me of what programming should always be like, fun, mind boggling interesting and exciting.

  • @prawgspinkz8015

    @prawgspinkz8015

    4 жыл бұрын

    Ijeoma Oguegbu 😂😂😂😂

  • @Socratica
    @Socratica4 жыл бұрын

    It's official! The Socratica Python Kickstarter was a success! Thank you to all of our supporters. Because of you, many more Python videos coming soon!! 💜🦉

  • @rickyricardo75

    @rickyricardo75

    4 жыл бұрын

    Applied Machine Learning in Python is coming?

  • @kritsaphongphuthibpaphaisi1509

    @kritsaphongphuthibpaphaisi1509

    4 жыл бұрын

    Yes please

  • @keoagileselemela6579

    @keoagileselemela6579

    3 жыл бұрын

    You go straight to the point , I love it , you don't have to say much, your concepts are clear and understandable, It took me one video to subscribe, Continue making these videos they are worth every second,🔥🔥🔥

  • @Max-qs7sd
    @Max-qs7sd6 жыл бұрын

    "I am not amused. The answer is i." 👌

  • @alfredaidoo4081
    @alfredaidoo40816 жыл бұрын

    My goodness!. ..."for such a mathematical sin" i admire you a lot.

  • @ianmubangizi6721
    @ianmubangizi67216 жыл бұрын

    MoneyNotFound Error :-))

  • @3polygons

    @3polygons

    6 жыл бұрын

    haha

  • @stephensantospirito6660

    @stephensantospirito6660

    5 жыл бұрын

    Then install Python and start (L)earning :)

  • @rannyarcher29

    @rannyarcher29

    3 жыл бұрын

    😂😂nice bro😂😂

  • @ShoppingBored

    @ShoppingBored

    3 жыл бұрын

    When you try to program without a job. 😂

  • @FlyingTurtleLP
    @FlyingTurtleLP6 жыл бұрын

    Omg I thought this series was dead :O I'm very happy to see a new episode!

  • @Morkftw

    @Morkftw

    6 жыл бұрын

    Same here! Thanks! :)

  • @franco521
    @franco5215 жыл бұрын

    0:30 "letting them know what they could do with their division request" lmaoo

  • @RandomDude2008B
    @RandomDude2008B6 жыл бұрын

    I've been a developer focusing on Python for over 5 years & still watch every one of your videos. How I wish that this had been available when I was learning. Also because of your series, I started writing docstrings again! :-p

  • @mabd7340

    @mabd7340

    3 жыл бұрын

    How much money do u make as a python developer

  • @OneManCanStopTheMotorOfWorld

    @OneManCanStopTheMotorOfWorld

    2 жыл бұрын

    @@mabd7340 almost nobody just makes a living being a Python dev. You need to have several other languages like JS , react , C++ to get a real job Good luck

  • @enderfrias3551

    @enderfrias3551

    2 жыл бұрын

    @@OneManCanStopTheMotorOfWorld Get into Data Science or Data Engineering with python and you'll have a really good salary.

  • @luanvasconcelos5935
    @luanvasconcelos59355 жыл бұрын

    This series is hands down the best content to learn python on youtube I've ever seen. I've been struggling a lot since I started to learn coding in python and I keep finding myself going through the episodes to check out its contents. 10/10 not pushing

  • @AnEvolvingApe
    @AnEvolvingApe6 жыл бұрын

    These videos are so awesome on so many levels.

  • @JonathanSueck
    @JonathanSueck3 жыл бұрын

    This video is so fun, and the effort you put into these videos is SO appreciated. You earned a subscriber with this one, thank you for your exceptional work Sorocratica!!

  • @xiaoyulyu
    @xiaoyulyu3 жыл бұрын

    As a CS student, I think this channel is underestimated!! OMG. This channel is amazing!!!!

  • @nikosjoakimidis1899
    @nikosjoakimidis1899 Жыл бұрын

    These are by far the best programming video productions I have ever seen

  • @Pop3455
    @Pop34556 жыл бұрын

    I'm so happy to see more of this. Please keep it up, and when you run out of things with python, do another language. Thanks for this upload!!

  • @mau_lopez
    @mau_lopez6 жыл бұрын

    Great tutorials, definitely recommended ! Ulka's (the Presenter) explanations are really clear, besides she is funny and ... beautiful ! ; ) Subscribed !

  • @milindbebarta2226
    @milindbebarta22264 жыл бұрын

    This is one of the best python tutorials on the internet. We need more of these please

  • @GelsYT
    @GelsYT4 жыл бұрын

    I don't understand why people dislike this video! THIS IS AWESOME! This is the only youtube channel I know that teaches python in this kind of way, the FUN way

  • @ramsesbrye7141
    @ramsesbrye71412 жыл бұрын

    These videos are lovely. This will definitely help with my training. I’m grateful for these videos.

  • @oswaldo555
    @oswaldo5555 жыл бұрын

    These videos are amazing. The content is very clearly presented. I just love the automaton-like delivery. She is awesome.

  • @ianmubangizi6721
    @ianmubangizi67216 жыл бұрын

    I thought you had forgotten about us - Good to see another great video from Socratica

  • @jonathanmeyer4842
    @jonathanmeyer48426 жыл бұрын

    This video series is absolutely fantastic and I enjoy watching episodes despite knowing most of their raw content already :)

  • @NilsonLopes05
    @NilsonLopes054 жыл бұрын

    The best explanation about exceptions that I've ever seen. Very clearly and precisely.

  • @AbdennacerAyeb
    @AbdennacerAyeb6 жыл бұрын

    Great tutorials really; Thank you for sharing your knowledge

  • @mathematicalcoffee2750
    @mathematicalcoffee27506 жыл бұрын

    Seeing this series back just made my Friday night!

  • @danieldimitrov7067
    @danieldimitrov70673 жыл бұрын

    This is the best channel to learn Python!

  • @Socratica
    @Socratica4 жыл бұрын

    Welcome to Socratica! You can see our entire Python Playlist here: bit.ly/PythonSocratica Subscribe to see all our new videos! bit.ly/SocraticaSubscribe

  • @ankitSharma-dd2qz

    @ankitSharma-dd2qz

    3 жыл бұрын

    Can you also help me with OOPS concept in python

  • @stephenc9398
    @stephenc93986 жыл бұрын

    Try: watch_video() Except DistractionError: return("Became distracted by the attractive charismatic python tutor")

  • @MustbeTheBassest
    @MustbeTheBassest6 жыл бұрын

    I love these videos. Very helpful and entertaining!!

  • @pojntfxlegacy611
    @pojntfxlegacy6116 жыл бұрын

    Awesome! I've missed this so much!

  • @chadhanson3431
    @chadhanson34316 жыл бұрын

    Welcome back!! Thank you!!!

  • @JollyPandaImports
    @JollyPandaImports6 жыл бұрын

    YAY - glad you are back - GREAT timing :)

  • @majumdarpromit
    @majumdarpromit4 жыл бұрын

    It is one of the best teaching videos i have ever seen. The way the young lady explains without unnecessary fussing around is simply awesome. Just enjoy the videos. Please also make vidoes on other topics as well. The clarity and smooth delivery is unrivaled in the Teaching Video catagory

  • @ghassensmaoui6060
    @ghassensmaoui60605 жыл бұрын

    Your explanation is just brilliant Socratica. Keep up the good work you nerds.

  • @distancelab2010
    @distancelab20103 жыл бұрын

    Brilliantly presented. Love the humour as well. Thank you so much.

  • @wexwexexort
    @wexwexexort6 жыл бұрын

    Good to see you back again @Socratica

  • @xtramiles4737
    @xtramiles47375 жыл бұрын

    Wow! Love Socratica, Love you Ulka!

  • @Socratica
    @Socratica4 жыл бұрын

    Support what you love! Socratica has a Kickstarter to make more Python: bit.ly/PythonKickstarter

  • @tonysanchez9232
    @tonysanchez92325 жыл бұрын

    Love this python series. I hope it keeps going!

  • @Socratica

    @Socratica

    5 жыл бұрын

    Oh, it will keep going, Tony! :) It will...

  • @keithlillis7962
    @keithlillis79624 жыл бұрын

    Socratica ROCKS - excellent tutorials and dead-pan intelligent humour - More power to this channel!!

  • @alurma
    @alurma6 жыл бұрын

    Wow, what a great series! I'm definetly going to recommend this to my friend :) I hope new python tutorials are coming sometime soon (i see that this video didn't get much notice... but i enjoyed it a lot)

  • @houseoftalents6645
    @houseoftalents66456 жыл бұрын

    After sooooo long...Really feel alive now to see another episode of python:D @socratica

  • @franciscoicarocs
    @franciscoicarocs5 жыл бұрын

    This is so good. SO GOOD

  • @abhideepsingh4484
    @abhideepsingh44846 жыл бұрын

    I will continue to support you on KZread. You guys are awesome

  • @sdparsons
    @sdparsons4 жыл бұрын

    I wish there were more of these videos in this series - they are so useful and also hilarious

  • @anikettiratkar
    @anikettiratkar5 жыл бұрын

    That's a brilliant way to demonstrate concepts. That's the reason why this is the only youtube channel on which I like every video I watch. And, probably, in future, when I start earning, I will stop raising MoneyNotFoundError. :)

  • @Harrzack
    @Harrzack6 жыл бұрын

    Love your terse explanations - gets to the point, short & sweet ( with a nice dash of dry humor). Hope your Python tuts will go on!

  • @yosefnegussie8790

    @yosefnegussie8790

    2 жыл бұрын

    "Correction!" these are juicy-humours, 4real!!

  • @sshum00
    @sshum006 жыл бұрын

    Might be a good idea to talk about context managers, a much much cleaner way to handle exceptions, entry points, exit points, and cleanup (such as closing a resource, whether it's a socket, file, or anything else)

  • @shreyasgautam9974
    @shreyasgautam99743 жыл бұрын

    I am speechless after watching your videos. Loved them.

  • @josephkimogele9988
    @josephkimogele99884 жыл бұрын

    am so blessed this is the first video I am learning about exceptions on, so awesome

  • @hameem6845
    @hameem68455 жыл бұрын

    This is super high quality stuff! Thanks a lot

  • @Vorstellungskraft1
    @Vorstellungskraft16 жыл бұрын

    Great to see you are back!!!

  • @Socratica
    @Socratica4 жыл бұрын

    We're halfway there. We still need your help! Support Socratica Python Kickstarter: bit.ly/PythonKickstarter

  • @barnabykent6698
    @barnabykent66982 жыл бұрын

    Oh my goodness THIS IS EXCEPTIONAL! At the end of a long day of grinding I didn't think I could handle yet another Python video but, no, this is much more fun than watching Netflix. I absolutely love it.

  • @Socratica

    @Socratica

    2 жыл бұрын

    Good luck in your exams! We're rooting for you!! 💜🦉

  • @ovrava
    @ovrava6 жыл бұрын

    this must be one of my favorite youtube channels

  • @schnoddelbotz
    @schnoddelbotz2 жыл бұрын

    Now ... this is truly the best educational video I've ever seen on programming. Teasing and massively packed with knowledge, visually appealing and perfectly fitting music as cream on top. Hey, why isn't this on TV? Back in the 90s (Switzerland / Austria / maybe also Germany) we HAD this -- just way worse of course ;). CHEERS!

  • @QuarktaschemitSenf
    @QuarktaschemitSenf Жыл бұрын

    the content, the explanations, and last but not least the humor. Please more of this :-) The "apparantly yoda never wrote code" line killed me xD

  • @MichaelGTadesse
    @MichaelGTadesse4 жыл бұрын

    Wow , very excellent and captivating video on exceptions - really like the way you explained - wonderful job!

  • @HIDlarissaTERRY
    @HIDlarissaTERRY4 жыл бұрын

    Beautiful, thank you. Let’s learn, I need that!

  • @eduardoescajadillo6580
    @eduardoescajadillo65806 жыл бұрын

    glad you're back!

  • @tendividedbysix4835
    @tendividedbysix48354 жыл бұрын

    Hey, I've watched a few of your videos and they're brilliant! Please keep it up so I can show them to my kids when they're learning python 8 or something haha

  • @carloshernandezperez6963
    @carloshernandezperez69634 жыл бұрын

    I love your banter. Really useful videos too.

  • @Xnothen
    @Xnothen3 жыл бұрын

    oh man, I was watching another video on this topic and it almost put me to sleep, how you describe things and your artistic flair makes it really enjoyable and understandable. Thank you so much.

  • @Socratica

    @Socratica

    3 жыл бұрын

    Thanks for your kind words! We have so much fun making these videos! 💜🦉

  • @davidahamefule7831
    @davidahamefule78312 жыл бұрын

    Socratica I just love you and your method of presentation on python.

  • @maimona1272
    @maimona12724 жыл бұрын

    Found you today, and fell fo you today, you are AMAZING!

  • @LuvxJacqu4li8e
    @LuvxJacqu4li8e2 жыл бұрын

    Wow your videos are really the best. TY keep them coming.

  • @ahmed.bhewary775
    @ahmed.bhewary7755 жыл бұрын

    guys where have you been ... I thought the series was over .... keep up the good work

  • @rockstarwebdev
    @rockstarwebdev6 жыл бұрын

    Wonderful video!! programmers are trying all over the place! - Awesome!!

  • @sagshah10
    @sagshah106 жыл бұрын

    Who the hell dislikes such an entertaining and informative video. Anyways thanks a lot i am a new subscriber whose been enjoying watching your tutorials. Must say been very entertaining whilst educating for me, also in areas which I thought I already new. Thank you very much. :)

  • @tsoajaspera4937
    @tsoajaspera49375 жыл бұрын

    Super video comme toujours. Avec des jolies jeux de mots à chaque fois. Great video madam :)

  • @remidalavajrammapratibhaku5985
    @remidalavajrammapratibhaku59856 жыл бұрын

    U rock all the time... thanks for the video waiting for few more...

  • @amaterasu48
    @amaterasu486 жыл бұрын

    So clever.

  • @huynh4128
    @huynh41286 жыл бұрын

    Whoaaa I missed these tutorials!

  • @marksminis
    @marksminis4 жыл бұрын

    I think I just found my favorite Python tutor. Also, I think I'm in love.

  • @rachadlakis1
    @rachadlakis13 жыл бұрын

    Great content, graphics, concentrated ideas, and no smile robot mode is fabulous

  • @reach_perumal
    @reach_perumal6 жыл бұрын

    Best Python tut I ever seen...

  • @maestro_100
    @maestro_100 Жыл бұрын

    Best python exception lesson I've watched so far on KZread!!! Well Explained, Really Funny Jokes...Thanks A Lot!

  • @saritagupta8979
    @saritagupta89794 жыл бұрын

    You are an amazing tutor with very good humor.

  • @Albert-fe8jx
    @Albert-fe8jx6 жыл бұрын

    Great content. I am so happy it is offered pro bono.

  • @user-ur2en1zq4f
    @user-ur2en1zq4f6 жыл бұрын

    Oh my god! They're back.

  • @davidr.flores2043
    @davidr.flores20434 жыл бұрын

    Excellent presentation. Great job.

  • @richardokonicha3683
    @richardokonicha36835 жыл бұрын

    ok, I had to pause the video, subscribe before continuing with the video. awesome

  • @sparrowhawkguitarboy
    @sparrowhawkguitarboy3 жыл бұрын

    Incredible series! I would like q similar series for the basics of vim

  • @ashlopez8221
    @ashlopez82215 жыл бұрын

    These videos are the best!

  • @gabriel_felippe
    @gabriel_felippe6 жыл бұрын

    Thank you Socratica! :)

  • @ianmubangizi6721
    @ianmubangizi67216 жыл бұрын

    Very time when I write a faction I remember Socratica and write a doc string after a lol!! :-))

  • @MyLinuxToyBox
    @MyLinuxToyBox5 жыл бұрын

    Great Video ... great video Socratica is a fantastic idea.

  • @liucloud6317
    @liucloud63174 жыл бұрын

    I subscribed your channel right after I came across it on KZread. Your vides explain ideas concisely and clearly which outstanding among others. Thank you very much for creating those awesome videos! BTW, I have read some sad news regarding Coronavirus in Italy. I hope you all are fine and get through this tough time soon!

  • @wesleytaylor-rendal5648
    @wesleytaylor-rendal56482 жыл бұрын

    Really high quality. Well done

  • @GoredGored
    @GoredGored3 жыл бұрын

    You are an Exceptional .... instructor.

  • @akira_asahi
    @akira_asahi2 жыл бұрын

    Thank you for the video. I am gratuful for your time and contribution. Kind regards, Akira.

  • @engineeringsurgery
    @engineeringsurgery Жыл бұрын

    Your method of teaching is very enthusiastic... it stimulates the passion to learn triggering everything...eish l can't explain you are too good

  • @konradd8545
    @konradd85453 жыл бұрын

    As always, hilarious and informative 😂

  • @zyadalharbi180
    @zyadalharbi1804 жыл бұрын

    I love the comedy in the tutorials. Thank you very much.

  • @ignaciojavierkairuzeguia599
    @ignaciojavierkairuzeguia5993 жыл бұрын

    Loved this ❤️

  • @nukeadler9539
    @nukeadler95395 жыл бұрын

    This is a furiously underrated channel

  • @yan-vn5oy
    @yan-vn5oy2 жыл бұрын

    Great video as always!!!

  • @kolavithonduraski5031
    @kolavithonduraski50314 жыл бұрын

    this videos are high art ! Thanks

  • @ishikasah1580
    @ishikasah15803 жыл бұрын

    When I was about to give up for python .. I got you 😌. Thanku ✨

  • @DrWho2008t101
    @DrWho2008t1013 жыл бұрын

    appreciate your work