Python Tutorial for Beginners 6: Conditionals and Booleans - If, Else, and Elif Statements

Поділитися
Вставка
  • Опубліковано 16 тра 2017
  • In this Python Beginner Tutorial, we will begin learning about if, elif, and else conditionals in Python. We will also be learning about Booleans and what evaluates to True and False. Let's get started.
    The code from this video can be found at:
    github.com/CoreyMSchafer/code...
    Watch the full Python Beginner Series here:
    • Python Programming Beg...
    ✅ Support My Channel Through Patreon:
    / coreyms
    ✅ Become a Channel Member:
    / @coreyms
    ✅ One-Time Contribution Through PayPal:
    goo.gl/649HFY
    ✅ Cryptocurrency Donations:
    Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
    Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
    Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
    ✅ Corey's Public Amazon Wishlist
    a.co/inIyro1
    ✅ Equipment I Use and Books I Recommend:
    www.amazon.com/shop/coreyschafer
    ▶️ You Can Find Me On:
    My Website - coreyms.com/
    My Second Channel - / coreymschafer
    Facebook - / coreymschafer
    Twitter - / coreymschafer
    Instagram - / coreymschafer
    #Python

КОМЕНТАРІ • 462

  • @siddeeqklbm
    @siddeeqklbm 5 років тому +416

    udemy courses = 0 level understanding
    corey's python videos = 9999 level understanding

    • @alonbechor1842
      @alonbechor1842 4 роки тому +6

      Corey is awesome. However, Is Udemy really that bad ?

    • @FinnedGuitar
      @FinnedGuitar 4 роки тому +12

      @@alonbechor1842 I use Udemy as an additional platform of advice and technique for my code. Trust me , Udemy is not bad at all. Its worked for me in regards to understanding certain things on Python 3.

    • @trinidadbosch8792
      @trinidadbosch8792 4 роки тому +10

      Agree, I tried 3 weeks with Udemy and I didn't catch as much as 3 days with Corey here, his videos are so smooth and practical! I'm learning with him and codecademy :)

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

      @@yellowmotif i've started recently to learn python .Must i see all those videos from this playlist in order to learn all the fundamentals?

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

      @@yellowmotif if not could you please tell me which of the videos should i see?

  • @harrywu3102
    @harrywu3102 4 роки тому +96

    English is my second language. But I could even totally understood what Corey explained.

    • @raphaelmapp8407
      @raphaelmapp8407 4 роки тому +5

      He has the best Python Channel on UA-cam, hands down!

    • @us-xf3kk
      @us-xf3kk 3 роки тому +4

      Pay him

    • @aka-Monster01
      @aka-Monster01 3 місяці тому

      @@us-xf3kk u too pay him

  • @gunterclements6856
    @gunterclements6856 4 роки тому +185

    Corey, I would donate to you, but all of my money went to the university that taught me absolutely nothing.

  • @AMINE-yy3zb
    @AMINE-yy3zb 6 років тому +82

    Man. This feels like medicine. It makes one confident to do coding.

  • @benzeltser9851
    @benzeltser9851 7 років тому +173

    .Those lessons are pure gold

    • @Mobin92
      @Mobin92 6 років тому

      The code is basically unreadable...

    • @meltedcheese1908
      @meltedcheese1908 6 років тому

      +Mobin92 In what way? I can understand it all.

    • @NervylHraje
      @NervylHraje 6 років тому +3

      .Those_lessons_are_pure_gold()

    • @NervylHraje
      @NervylHraje 5 років тому

      @@CodingUnited just 8 months later ;)

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

      @God player
      I said it almost 4 years ago
      Still super relevant.

  • @ryanlobo7530
    @ryanlobo7530 5 років тому +107

    Dude, I have to say, after trying to study python for about a week I found it really interesting but then I got off it for about a week or so due to work and I was completely put off and found it really hard to get back into it and then I came across your videos. Your videos are truly amazing, the way you explain is remarkable and I don’t know why someone would go pay to learn when there are videos and channels like yours. each topic is thoroughly explained and the way you explain it makes it a lot easier to understand. Carry on with your hard work and thank you so much for these videos !!

    • @princeroy1837
      @princeroy1837 Рік тому +2

      I turely agree with you bro. I tried many different channels, books, and even few udemy paid courses (pirated), but I can't find someone explaining like him.

  • @sidabras
    @sidabras 2 роки тому +53

    For those that take notes:
    # Comparisons:
    # Equal: ==
    # Not Equal: !=
    # Greater Than: >
    # Less Than: <
    # Greater or Equal: >=
    # Less or Equal:

  • @12Prophet
    @12Prophet 7 років тому +263

    I'm loving your tutorials, they are very clean and organized. The audio is good and you're going at a good pace. Please, please keep at this level of professionalism.

    • @Mobin92
      @Mobin92 6 років тому +2

      Are you in a parallel universe? This video was literally anything BUT professional. Crappy resolution, girlfriend talking in the background, black bars around the video, and what he is showing is completely useless code. Did he pay you to write this?

    • @coreyms
      @coreyms  6 років тому +139

      I live alone. So if someone is talking in the background then my house must be haunted. And black bars around the video? I think you watched something else...

    • @kumarsantosh726
      @kumarsantosh726 6 років тому +2

      LOL :-))))

    • @user-xg3yf4yk6q
      @user-xg3yf4yk6q 6 років тому +25

      FFS people complaining for FREE content that obviously required hell alot of work upfront... Thanks a lot Corey to share your precious knowledge with us.

    • @meltedcheese1908
      @meltedcheese1908 6 років тому +8

      +Mobin92 What black bars around the video? You must be on a high res monitor. The code that he is showing gets across the point of if statements and how they are helpful.

  • @anshulargelwar9896
    @anshulargelwar9896 6 років тому +71

    Corey, you are the best teacher I have seen.
    Thanks for such a wonderful videos.

  • @DarnastTFT
    @DarnastTFT 5 років тому +14

    Corey, thank you so much for those videos. The best teacher I have encountered.

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

    I am keep coming back to these amazing tutorials all those years after. Hands down one of the best channels for getting solid and well explained educational content. Much respect Corey from a proud patreon supporter

  • @jz343
    @jz343 6 років тому +11

    Thank you very much, simplified and fast. definitly one of the best toutorials :)

  • @bhargavikommineni6970
    @bhargavikommineni6970 5 років тому +3

    True and False values which you have mentioned are veryyy veryyyyy useful! Your tutorials covers lot of important things which other tutorials don't even bother about. You are awesome. Thanks Corey for providing such great videos!!!

  • @tahakhidr
    @tahakhidr 6 років тому +2

    Your tutorials are great! What i like about them the most is that they are fast, don't waste my time and everything in them is important! Thanks

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

    The thing I love is that you explain all of it in such short time! Thank you so much!

  • @veneranurdin8410
    @veneranurdin8410 6 років тому +5

    I am amazed by your ability to explain things in simple and quick manner. Thanks a lot for tutorials! God bless you!

  • @user-yt4px4zr3s
    @user-yt4px4zr3s 6 років тому +21

    You are absolutely the best Python teacher!!!

    • @NuEnque
      @NuEnque 5 років тому

      you're hot!

  • @douglaslawrie3449
    @douglaslawrie3449 5 років тому +2

    Learning Python for the first time and finding these tutorials extremely easy and helpful. Thanks!

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

    Can't stop watching! I love these videos! Thank you so much

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

    I just found your channel dude your lessons are so clear and to the point. Thanks bro. Definitely going to go thru the course to learn.

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

    Thank you Corey for your time and effort. Keep spreading the knowledge.

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

    Def one of the best tutorials out there. Love the content a lot mate. Much respect to you Corey :)

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

    Best tutorials for Python that I have ever seen. Deeply appreciated 🙏🏼

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

    Thanks a million for these tutorials Corey!

  • @deadchannel7394
    @deadchannel7394 4 роки тому +4

    Thank you so much, I was stuck and then I found this video, couldn't thank you more.

  • @ssaeed9574
    @ssaeed9574 2 роки тому +2

    Corey, these tutorials are really great. I wish I had come across your videos a lot sooner. You are precise, clear and speak at the right pace, and you've made it a lot easier to understand the language. A big thank you.

  • @md.shorifulislam8366
    @md.shorifulislam8366 6 років тому +1

    Amazing Bossssss ! Salute !! I am getting very inspired thinking that I can have much knowledge from you....many many thanks !!!

  • @jhennique6158
    @jhennique6158 5 років тому +13

    Cory you have saved my life with your videos, I can't say how much. I have been struggling. I started to think I was just pure dumb cos most materials I came across were not broken down this way. I just wish i had found your videos a month earlier, i would have gotten a better grade in school. Thanks man! you're awesome.

  • @yogabull5929
    @yogabull5929 6 років тому

    Dude, thanks for this video. I'm wrapping my head around this !

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

    I like your videos. You explain complex things in an easy way. Your videos are essentially beneficial kickstart for beginners. Keep going.

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

    You made learning Python so interesting and easy. What a Saviour!!! Thank you!

  • @infinitus.
    @infinitus. 6 років тому +2

    Wow, i've been trying to wrap my brain around this for 2 days now. Finally got it. You're a good teacher. Cheers mate.

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

    Easy to grasp the subject with full clarity. Thanks for make it free.

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

    Corey Thanks for amazing tutorials will recommend to my colleagues as well

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

    Concise, constructive and smooth.

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

    All comments are 100 % positive..! Congrats Corey Schafer. This shows your effort.

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

    You are Print "The God of Python", your tutorials are very concise, clean, clear and very easy to understand...

  • @thebarch7594
    @thebarch7594 3 роки тому +3

    i missed half a year worth of learning for my computer science gcse because of the pandemic and these videos are really bringing me up to speed thanks!

  • @rocketmoving3860
    @rocketmoving3860 5 років тому +1

    Great video! Always a clear explanation : )

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

    Wonderful lesson, your teaching is easy to understand! Thanks!

  • @rdhalla3d
    @rdhalla3d 5 місяців тому

    Fast, accurate and to the point, Love it! :)

  • @ABShinobi
    @ABShinobi 5 років тому +3

    The best tutorials on the net...

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

    Thank you so much! For explaining all the things in such a easy way.

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

    Very helpful Python serial tutorial. Love it. Thanks.

  • @garrtrigger
    @garrtrigger 5 років тому +2

    Thanks sir, this video gave a better understanding of if else statements. Currently taking Automate the Boring Stuff at Udemy right now, and your tutorial is a great help.

  • @Sakthivel-zp9xg
    @Sakthivel-zp9xg 5 років тому +1

    Excellent Corey!!!! Nice video!!!!!!

  • @philippe6724
    @philippe6724 6 років тому

    Fantastic teacher and pedagogue !

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

    AMAZINGLY CLEAR !!!! thank you ;))

  • @amirhossain2k9
    @amirhossain2k9 7 років тому +5

    great one. love the examples on false values considered on python. thanks man.

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

    You make Python easy! After this tutorial, im ready to take on more Python!!!! Thank You!!!!!

  • @anuragparo6595
    @anuragparo6595 5 років тому +2

    best tutorials in whole universe.

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

    I love your tutorial keep up the good work 👍
    I liked and subscribed👍

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

    Best tutorials ,many thanks

  • @afx-azizyarfx994
    @afx-azizyarfx994 3 роки тому

    This helped me alot, thanks!

  • @chingzhu2149
    @chingzhu2149 5 років тому +1

    Thank you so much for the excellent job!

  • @patrickwheeler1979
    @patrickwheeler1979 10 місяців тому

    This was another good video, thanks

  • @adv2164
    @adv2164 4 роки тому +16

    This is undoubtedly the best course across the Internet!! Thanks a lot for creating this course. Sir, If possible, can you please make exercises on the topics covered in videos? It would be a great help for practicing. If not, please at least refer us the best place for practicing.

  • @meltedcheese1908
    @meltedcheese1908 6 років тому

    Great video man!

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

    Great lecture. I learned a lot from here in short period of time.

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

    Thank a lot, with 2 min watch I understood properly.

  • @scottwiseman2966
    @scottwiseman2966 5 років тому +1

    another great video. thanks again

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

    Great video!

  • @MylesGmail
    @MylesGmail 5 років тому +2

    Ur teaching style is really good

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

    Great video, thank you!

  • @balain501
    @balain501 6 років тому

    Wonderful tutorial!

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

    Very nice.Thank you.

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

    Thank you Corey

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

    The simplest way of teaching 😍👍

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

    I feel wayyy better about conditionals, thank you!

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

    That explanation of what evaluates to false was extremely helpful

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

    very helpful. thankyou ! so much.

  • @RameezRaja-qc9fi
    @RameezRaja-qc9fi Рік тому

    Excellent work brother

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

    That was really helpful

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

    By the way, your videos are really awesome i.e even I understand what they are. Thanks for your commitment.

  • @debayanroy5434
    @debayanroy5434 5 років тому +1

    I truly appreciate you example picking skills :)!!!....

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

    Thanks Corey

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

    another excellent tutorial, CS is the best Python teach out there!

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

    I am telling you. This man is gold!

  • @andyn6053
    @andyn6053 5 років тому +1

    You explain much better than my university teacher!

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

    You, Sir, are a lifesaver.

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

    Thanks. Really helped me.

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

    Thank you, Thanks a bunch

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

    Best #Python tutorial i have ever found !

  • @user-dk9lg9cq2u
    @user-dk9lg9cq2u Рік тому

    Thank you so much!!

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

    2024 and your still helping learners!! big thanks! your explanation made a lot more sense then my course in Udacity!

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

    nice loved your teaching

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

    Very good tutorials

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

    I have watched a few of other tutor, Corey is best on these part , thank you. best=your knowledge and explanation if True: print(corey)

  • @7XxKiKoOxX7
    @7XxKiKoOxX7 3 роки тому

    Tutorial 06/143 done ! Tyvm

  • @danomar101
    @danomar101 5 років тому +1

    Thanks, I might be a complete nobody in python, but I got these vids to keep succeeding.

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

    Thanks a lot!

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

    loving them

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

    amazing!

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

    I thought I know the basics of python well until this video series. It just showed me how untrue that is, and you know what? I'm glad it did, because now my basics are a lot stronger than they were before. Also you are a fantastic teacher.

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

    you are awesome mate..

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

    The way you make what I considered hard so easy I feel like, what a genius you are, it like you understand how my brain can understand python 😂. Thank you so much about that, I appreciate your videos 🤝.

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

    Thank-you this was a very helpful video, I stumbled on a reddit site where I saw two people recommended your name. One person said they like to return back and re watch your videos even though they have been programming for awhile.

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

      I was also finalizing the right channel to start with. Finally started with this gem yesterday

  • @jakethesnek
    @jakethesnek 10 місяців тому

    I have only been learning Python for few days now, and I'm retaining and applying everything you teach! I take my notes in a .py file, seems to help me alot as I can see the code and comment-in the explanations!
    I also used what i learned to come up with another way to write (else) using a comparison operator
    Elif user != 'John' or 'Jacob':
    Print('Access Denied')
    #which is another way of saying..
    Else:
    Print('Access Denied')
    Long story short. You're awesome!

  • @farshad-hasanpour
    @farshad-hasanpour 4 роки тому +1

    best python tutorial ever

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

    grate video thanks