No video

Unit Tests in Python || Python Tutorial || Learn Python Programming

𝙎𝙩𝙖𝙮 𝙞𝙣 𝙩𝙝𝙚 𝙡𝙤𝙤𝙥 𝙄𝙉𝙁𝙄𝙉𝙄𝙏𝙀𝙇𝙔: snu.socratica.com/python Unit tests are a way to make sure your code is correct. Python comes with a built-in unit test framework that makes it easy to write a lot of tests for your software. In fact, many engineers will write a series of tests before they begin coding. This approach is called “test driven development” and is very effective.
We are happy to dedicate this video to our new VIP Patron, Juan Guillermo Henao. On a day when we lost 7 Patrons in response to Patreon's new fees, Juan made a generous pledge to keep our video production going! Thank you so much, Juan, for helping us to continue our work!
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)
♦♦♦♦♦♦♦♦♦♦

Пікірлер: 586

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

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

  • @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!! 💜🦉

  • @setudutta3905

    @setudutta3905

    4 жыл бұрын

    You guys are amazing...a revolution in the field of teaching.

  • @mohamedharesali8002

    @mohamedharesali8002

    4 жыл бұрын

    Please we need more such videos, I have never seen how exactly you confess your code,

  • @unvrknow22
    @unvrknow226 жыл бұрын

    To quote FDR, "The only thing we have to fear is if Socratica stops making these awesome Python vids."

  • @sevanshahnazaryan743

    @sevanshahnazaryan743

    6 жыл бұрын

    And they stopped...

  • @euler4513

    @euler4513

    6 жыл бұрын

    Please don’t stop

  • @aryanmn1569

    @aryanmn1569

    5 жыл бұрын

    Fears become to reality, it hurts

  • @guilhermehx7159

    @guilhermehx7159

    4 жыл бұрын

    @@aryanmn1569 they will make more videos soon. They started a campaign to raise funds to make a new series of Python videos

  • @gordontang7837

    @gordontang7837

    4 жыл бұрын

    for real

  • @jameswright4732
    @jameswright47326 жыл бұрын

    The snarky comments are pretty fantastic.

  • @psSubstratum

    @psSubstratum

    3 жыл бұрын

    Or in python language: OK

  • @HomeWreckerGG
    @HomeWreckerGG6 жыл бұрын

    "You've made your point Python" LOL

  • @amberstruthers3228
    @amberstruthers32282 жыл бұрын

    Your videos are such a breath of fresh air in a world where technical videos can get rather dry. So happy I discovered your channel! :)

  • @Socratica

    @Socratica

    2 жыл бұрын

    We're so glad you've found us!! It can be hard to find the good stuff on KZread. It would be a HUGE help if you share our videos and help us get the word out on the Socials!! 💜🦉

  • @cryptodashboard1173

    @cryptodashboard1173

    17 күн бұрын

    @@Socratica I see lots of teachers giving various lectures but yours is different in presentation. Sometimes I see u as a robot and confused. Are u for real?...great python vids indeed

  • @sortof3337
    @sortof33376 жыл бұрын

    Who else watches these videos, even though they already know python?

  • @InternationalBigshot

    @InternationalBigshot

    6 жыл бұрын

    Who watches these videos and doesn't even know what python is?

  • @namahshrestha3226

    @namahshrestha3226

    6 жыл бұрын

    I do..for fun..but i walked out with some great info that i missed while i learned python..this is one hell of a tutorial

  • @toshobg

    @toshobg

    5 жыл бұрын

    it's a Snake

  • @bobfrombilling

    @bobfrombilling

    5 жыл бұрын

    She cracks me up, love it.

  • @craigbarnett5507

    @craigbarnett5507

    5 жыл бұрын

    No but I am rewatching these videos tho. They are great!

  • @dameongraham4444
    @dameongraham44445 жыл бұрын

    “...just okay? Python is stingy with praise!” 🤣 Hilarious...I love it! Great vid! Keep up the great work!

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

    This is the first coding video I'm commenting on, why? It's awesome. From music, presentation, simplicity, pinpoint, beginner-friendly, the mechanic/robotic voice, and humor (sounds like an AI model learning to speak) to delivery. I love this and I can't express it enough.

  • @maroofshittu
    @maroofshittu6 жыл бұрын

    I have never laughed this hard over unit tests. 10 🌟

  • @alexandersage7035
    @alexandersage70355 жыл бұрын

    I wish all coding tutorials were of this audio quality. Nice unique take on tutorials

  • @pranav9421
    @pranav94216 жыл бұрын

    You explain the concepts in such a simple manner that it makes it easy to learn the rest by myself. And the occasional interspersed dry humor makes the whole lesson more memorizable. Please do a video on Python Generators.

  • @nothanks7752
    @nothanks77526 жыл бұрын

    EE just learning python and I've heard the software engineers talk about creating unittests. I didn't even know what they were talking about until this video so thank you very much. Super clear and straight forward.

  • @devn0n

    @devn0n

    2 жыл бұрын

    How's it been so far?

  • @leumas4092

    @leumas4092

    5 ай бұрын

    hows it going?

  • @Maquox
    @Maquox5 жыл бұрын

    "I know, this makes me itch too" Totally! hahaha

  • @PunmasterSTP
    @PunmasterSTP3 жыл бұрын

    I think it's safe to say that Socratica has really asserted itself as an organization that puts out free, high-quality and extremely entertaining videos!

  • @maryz.r.avecilla4788
    @maryz.r.avecilla47884 жыл бұрын

    I love the voice, very clear and direct to the point. I have found the right tutorial that fits my learning needs. Thank you so much Socratica. I enjoy all the quotes. You are the best of the best!

  • @melissajade7717
    @melissajade77172 жыл бұрын

    This lesson was absolutely hilarious, helpful, and beneficial to learning this topic. "Do not fear tests, embrace them". I will think of this every time I am faced with a new one. Thank you, seriously. That is so empowering.

  • @peterlewerin4213
    @peterlewerin42135 жыл бұрын

    Very many videos about computers and programming are presented in a rambling, introverted manner. Your videos are crisp and expressive, like good source code. (I like the humor as well.) Old Shakespeare indulged in quite a bit of cut-and-pasting, but he wasn't wrong about unit tests. You can't live without them, and you live a lot happier with them.

  • @tylerwelch7472
    @tylerwelch74726 жыл бұрын

    These videos are great! I've read a few python books, and followed along with a few different courses, and you're videos have made me actually "understand" the topics you cover. Love it! Keep it up !

  • @dhilanchandrasekara4816
    @dhilanchandrasekara48164 жыл бұрын

    How am I just discovering this channel now? One of the most entertaining programming tutorials I've ever seen, love your work! :)

  • @johnrine9671
    @johnrine96716 жыл бұрын

    I do not see a doc string so lets see if we can pass the function a kitchen sink...

  • @theo_st

    @theo_st

    6 жыл бұрын

    Thank you

  • @jarodlatta6185

    @jarodlatta6185

    4 жыл бұрын

    QA in a nutshell

  • @pastorhudson
    @pastorhudson5 жыл бұрын

    This is so so good! Your teaching is so clear, and the humor keeps things fun and approachable. You should be very proud of this python series. Thank you!

  • @MyTube4Utoo
    @MyTube4Utoo6 жыл бұрын

    This one was a little over my head, but now I know what I need to study.

  • @codeisawesome369
    @codeisawesome3695 жыл бұрын

    Holy MOLY, the stylishness of KZread programming channels is going off the charts at this point!

  • @saeedsedigh1032
    @saeedsedigh10325 жыл бұрын

    "if type(r) not in [int,float]:" That was smart.

  • @zyptoskid

    @zyptoskid

    5 жыл бұрын

    yeah better than so many "or" statements

  • @OmegaF77

    @OmegaF77

    4 жыл бұрын

    BIG BRAIN TIME

  • @nlight8769

    @nlight8769

    3 жыл бұрын

    There are better ways to achieve it actually. With isinstance : if not isinstance( r, (int, float) ) Indeed, if you make a class "INT" that inherits from int like so : class INT(int):pass *type(INT(5)) == int* would return *False* and not pass the test, while it should. Very disapointing ;p

  • @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

  • @JLenival

    @JLenival

    3 жыл бұрын

    I respect you, but 'j' is the only imaginary unit and 'i' is for time variant electrical current or loop index. Peace!

  • @joziahbo1858

    @joziahbo1858

    3 жыл бұрын

    I guess im asking the wrong place but does someone know of a method to get back into an instagram account..? I somehow forgot the login password. I would love any tips you can give me

  • @stetsoncollin2138

    @stetsoncollin2138

    3 жыл бұрын

    @Joziah Bo instablaster ;)

  • @joziahbo1858

    @joziahbo1858

    3 жыл бұрын

    @Stetson Collin Thanks for your reply. I got to the site on google and Im in the hacking process atm. Seems to take quite some time so I will reply here later when my account password hopefully is recovered.

  • @joziahbo1858

    @joziahbo1858

    3 жыл бұрын

    @Stetson Collin it did the trick and I actually got access to my account again. I'm so happy:D Thank you so much you really help me out :D

  • @bmanishap
    @bmanishap5 жыл бұрын

    Very nice video like watching short science fiction movie !!!!

  • @MyTube4Utoo
    @MyTube4Utoo6 жыл бұрын

    A new Socratica Python video! YAY! Christmas came early!

  • @mapa5000
    @mapa50003 жыл бұрын

    Fun, intelligent, creative...what a beautiful way to teach coding... thank you for this ... I love your work.!

  • @89Valkyrie
    @89Valkyrie6 жыл бұрын

    Every student should watch your videos. Amazing knowledge presented in an incredibly creative, cringe-less, way. Instantly subscribed.

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

    HEEELLLLLLP! bit.ly/PythonKickstarter DEADLINE SUNDAY OCT 20th

  • @jackdrost9555
    @jackdrost95555 жыл бұрын

    Yes, obviously I will need to subscribe to this channel. I've never belly-laughed while learning Python.

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

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

  • @mrush336
    @mrush3365 жыл бұрын

    I love the humor. Also very enlightening for me as a beginner. Keep up the good work!

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

    I absolutely love you humor! Not to mention I actually understood the topic well enough to implement it in practice, unlike during other 30+ minute vids. Keep up the great work!

  • @georgesmith3022
    @georgesmith30224 жыл бұрын

    I never test my code, but when i do, i do it in production

  • @tospipdevelopment9793

    @tospipdevelopment9793

    3 жыл бұрын

    Way to go👍

  • @nguyenduy-sb4ue
    @nguyenduy-sb4ue5 жыл бұрын

    OMG ! !! the quality of your work is insane !! I really enjoy your videos, please make more

  • @lRadicaLl
    @lRadicaLl6 жыл бұрын

    I love your videos! It's fun, it's elegant, and I'm really learning... thanks a lot!

  • @dreamphoenix
    @dreamphoenix4 жыл бұрын

    Your commentary is priceless. "You have got to be kidding me." My old physics teacher and you would get along quite well. :)

  • @vladimirrav
    @vladimirrav4 жыл бұрын

    I liked your videos a lot, the best tutorial series I've ever seen. It is very exciting to watch. It would be very nice to have a complete data science tutorial like this with statistics, probability and so on. Keep the outstanding work, we'll appreciate it!!!

  • @fleboho
    @fleboho5 ай бұрын

    I'm only 1 minute 27 seconds into the video, and am loving it already.

  • @onokr705
    @onokr7054 жыл бұрын

    "Trust but verify with unit testing" - William Shakespeare

  • @emPtysp4ce

    @emPtysp4ce

    4 жыл бұрын

    Truly, he was a man ahead of his time

  • @retrofutur1st
    @retrofutur1st2 жыл бұрын

    Way to make a challenging topic entertaining, big props! I'll be incorporating unit testing into my coding from here on out.

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

    I love this damn channel. Seriously, this helps me out so much!

  • @ArizonaJewell
    @ArizonaJewell3 жыл бұрын

    I'm currently finishing up a course on object oriented programming in Python. I didn't really get the lecture on testing, and this is BY FAR one of the best videos I could've asked for for learning Python. It's short and sweet, so I don't need to watch some 40 minutes video.

  • @cpgautam172
    @cpgautam1724 жыл бұрын

    thank you for telling how to check all the different assertions, many times my prof would tell us examples for few, and in the exam we only get those few problems. but when solving various problems, it overwhelming how much we dont get taught, at least here u r showing a good place to start.

  • @jinxkhoche
    @jinxkhoche4 жыл бұрын

    It sounds like I'm attending a briefing of an inter-galactic mission of utmost importance and am being told of my objectives by an intelligent alien-computer. Brilliant!

  • @fordfactor
    @fordfactor4 жыл бұрын

    I've started watching some videos from this channel. They are clear, concise and funny!

  • @vivekjoshi3769
    @vivekjoshi37698 ай бұрын

    Got curious about Unit Tests after somebody mentioned in a community. Watched some videos before this one. I promise you nowhere I got such clear & concise explanation especially with python code on the screen. Some people are born with the ability to make things easier to understand for the world. Big Salute to the lady & her Team!

  • @Erin-bc8ic
    @Erin-bc8ic5 жыл бұрын

    Holy shit this is amazing. Very clearly, functional and with a small dash of humor with an excellent voice.

  • @HP-ol2ux
    @HP-ol2ux4 жыл бұрын

    You are really great. People rarely combine education with humor in such good way. Very nicely done :)

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

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

  • @selenewaide8994
    @selenewaide89946 жыл бұрын

    OMG!! You rock! You've got yourself a new subscriber. Great content and delivery.

  • @charlesmorris3888
    @charlesmorris38884 жыл бұрын

    Thank you, this video was an extremely helpful intro to unit testing. The practical example was really helpful.

  • @prlombaard
    @prlombaard6 жыл бұрын

    As always @Socratica, short simplistic videos, that cuts right to the chase and explains a topic in Python in a very concise manner, giving the Viewer just enough to satisfy the initial curiosity,which prompts the Viewer to then to go study more.

  • @ninasist4667
    @ninasist46674 жыл бұрын

    i love this kind of learning!!! So much better than any other tutorial, it feels like im in a game :D

  • @harrybarrow6222
    @harrybarrow62225 жыл бұрын

    I absolutely loved this video, so of course, 👍 and Subscribed + 🔔. It really held my attention, made me laugh, and taught me a lot. I am an experienced programmer and I have been looking for a Python tutorial series that would not send me to sleep. Thank you, Socratica, I have just started your Python course. 😀

  • @manuelpineda9067
    @manuelpineda90672 жыл бұрын

    It's amazing how exciting the video makes a subject as unit tests seem.

  • @vincentkizza3751
    @vincentkizza37513 жыл бұрын

    Jesus! What a tutorial! Never seen anything like it,I cannot wait for more. Many many thanks.

  • @michaelsvoboda1024
    @michaelsvoboda10246 жыл бұрын

    Why did it take so long to find this exceptional channel? Great format.

  • @DUANEYAISER
    @DUANEYAISER6 жыл бұрын

    There's much to love about this series, but I especially love that you use vim. :-)

  • @DaniloSilva-pl3sq
    @DaniloSilva-pl3sq2 жыл бұрын

    I'd never imagine unit tests were so easy and simple!

  • @ruixue6955
    @ruixue69553 жыл бұрын

    2:18 2:32 your typically put the unit tests into a separate file 3:08 3:37 unit test code demo 4:39 run unit test: python -m name_of_test.py

  • @benjaminmayanja7452
    @benjaminmayanja74525 жыл бұрын

    You make programming so cool and hilarious. Made my morning.

  • @mathematicalninja2756
    @mathematicalninja27566 жыл бұрын

    I am so glad to stumble upon your channel. you have great content.

  • @quantadotonium3654
    @quantadotonium36542 жыл бұрын

    What an entertaining and exciting way of descriptions of concepts. Besides, the actual content, her sarcasm makes my day! Well done AI!

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

    thats the power of firdt impressions - i saw your one video for the first time about python list comprehensions months ago. and today, while searching for python unit tests, other videos i "saved to watch later" - but ur video came, i immediately opened in new tab.

  • @12copablo
    @12copablo4 жыл бұрын

    Very well explained, great humor and great background sounds!

  • @Amakratacjan
    @Amakratacjan5 жыл бұрын

    That's trippy in a Command and Conquer game way. Awesome

  • @erintracey6554
    @erintracey65542 жыл бұрын

    These videos are not only educational, but fun! Thank you

  • @guilhermehx7159
    @guilhermehx71595 жыл бұрын

    I am amazed of how fast i learnt from these videos when compared to other courses. fast and easy

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

    Love this videos ! Really like her and her style, I enjoy it a lot ! Thanks !

  • @dantedt3931
    @dantedt39315 жыл бұрын

    I never thought unit tests would be this fun.She rocks!

  • @emmastone6496

    @emmastone6496

    5 жыл бұрын

    Lol, same.

  • @lightyearahead
    @lightyearahead4 жыл бұрын

    This is both funny and knowledgeable content. Love this series.

  • @_mvr_
    @_mvr_6 жыл бұрын

    i didnt even know python complex numbers were a thing. Bonus info! This series is great

  • @jonsnow208
    @jonsnow2084 жыл бұрын

    Congratulations! I am a very scattered person, but with this teaching form i am absolutetly concentrated only in the video

  • @archstampton5910
    @archstampton59105 жыл бұрын

    The function is, how should I say this politely ... "A grave disappointment"

  • @ssr142812
    @ssr1428122 жыл бұрын

    I was still in shock and staring at her even after watching 5+ videos! Really a different kind of learning and experience! kudos

  • @andre-barrett
    @andre-barrett4 жыл бұрын

    I enjoyed this video. I'm a big advocate of unit testing and even though I don't do any Python programming yet, I believe the principles are the same across most languages

  • @vigajad7677
    @vigajad767712 күн бұрын

    It was a pleasure to watch and learn, I just got to write my first python tests in a project and now I'm much less scared of the task :')

  • @ufotofu9
    @ufotofu94 жыл бұрын

    This is great. Love the bit and great tutorial!

  • @theelysium1597
    @theelysium15974 жыл бұрын

    This is probably the best video I have ever seen on the internet! I'm not that much into python tbh and I don't know what else you are doing but I gave you a subscribe ;)

  • @diallomamadou258
    @diallomamadou2584 жыл бұрын

    A frontend Developer loving the way you explain things, just subscribed.

  • @porlando12
    @porlando124 жыл бұрын

    This was brilliant and entertaining! Why has it taken me so long to discover Socratica?!

  • @camilofunez4209
    @camilofunez42092 жыл бұрын

    I just discovered this wonder, and OMG! i feel like a kid with a new toy. This video is AMAZING!. thanks

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

    omg these are so good. Clear and concise lessons with some hilarious commentary.

  • @nktslp3650
    @nktslp36504 жыл бұрын

    That was fun and instructive to watch! Thanks a lot!

  • @Kevin-zk7xc
    @Kevin-zk7xc4 жыл бұрын

    One of the funniest and best tutorial I've ever watched

  • @DanielSmith-yx6zm
    @DanielSmith-yx6zm4 жыл бұрын

    This video made my day. I learned something and it was fun

  • @rafaelcascalho4180
    @rafaelcascalho41806 жыл бұрын

    That was absolutely helpful, thanks!!

  • @AidanofVT
    @AidanofVT4 жыл бұрын

    I don't know who you are, but I just found this video and your channel will be my first choice for coding help forever.

  • @iamdexterpark
    @iamdexterpark4 жыл бұрын

    A wonderful video and series. Thank you so much for sharing!

  • @Lifelightning
    @Lifelightning4 жыл бұрын

    Brilliant, insightful (wtf "j" Python?) and hilarious. The world needs more tutorials like this.

  • @ricardohincapie1537
    @ricardohincapie15374 жыл бұрын

    Fantastic, simply fantastic. Your concept is so fun!

  • @sudhanshupatwardhan9900
    @sudhanshupatwardhan99006 жыл бұрын

    As always, well explained!!

  • @bariborsaturday
    @bariborsaturday11 ай бұрын

    "Python is stingy with praise" 😂😂 This is one relaxing python tutorial video I've never come across. This is the best way to learn coding

  • @KelDG3
    @KelDG34 жыл бұрын

    This channel is legendary! Thanks

  • @PradeepBishtcaptains-log
    @PradeepBishtcaptains-log4 жыл бұрын

    Hands Down !! What a great way to teach something !!

  • @quietlyconfidentful
    @quietlyconfidentful6 жыл бұрын

    Can't get enough of this channel

  • @Spainog
    @Spainog6 жыл бұрын

    Love this Series... Thanks Socratica