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

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

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

FavoriteLoadingAdd to favorites

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:

Watch the full Python Beginner Series here:

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet – 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet – 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet – MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey’s Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:
My Website –
My Second Channel –
Facebook –
Twitter –
Instagram –

#Python

source

By |2020-10-28T10:21:30+00:00October 28th, 2020|Python Video Tutorials|25 Comments

25 Comments

  1. Dickworshiper OMsiba October 28, 2020 at 10:21 am - Reply

    now i am sure I am going to be a program developer. thank you Corey Schafer. Gonna join your digital academy.

  2. Cemal Çakır October 28, 2020 at 10:21 am - Reply

    Hey Corey, great lessons. Actually I found a way to implement switch statements into python with dictionary. For example:

    language_switcher = {

    "Python" : "Language is Python ",

    "Java": "Language is Java",

    "JavaScript": "Language is JavaScript"}

    print(language_switcher.get(language))

  3. Vlad Coman October 28, 2020 at 10:21 am - Reply

    How did you changed both lines when you typed JavaScript instead of Java? Thank you!

  4. Gabriela Ojeda October 28, 2020 at 10:21 am - Reply

    Thank you for this video, it's very helpful! 🙂 at the moment i'm stuck in an exercise in which they ask me to add 200 to my variable using else, elif and else and not really sure how to proceed in this case. Anyone know how to add to variables through these functions?

  5. HR!T October 28, 2020 at 10:21 am - Reply

    Seriously the best python course.

    Anyone reading this comment – Watch these videos + W3 schools Python (Best Combo)

  6. faouzi douche October 28, 2020 at 10:21 am - Reply

    Hi my best teacher. I'm really enjoying while I'm learning with your fabulous Python's tutorial.
    I have a question concerning the IDs, why every time we run again the code the a & b IDs are changed?
    Thanks in advance.

  7. aryan singh October 28, 2020 at 10:21 am - Reply
  8. Buthy October 28, 2020 at 10:21 am - Reply

    #Comparisons:

    #Equal: ==

    #Not Equal: !=

    #Greater Than: >

    #Less Than: <

    #Greater or Equal: >=

    #Less or Equal: <=

    #Object Identity: is

  9. Flourish Ol October 28, 2020 at 10:21 am - Reply

    Your tutorial is absolutely great
    But please make the text bolder
    Thanks man

  10. The Barch October 28, 2020 at 10:21 am - Reply

    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!

  11. Yap Jia Hong October 28, 2020 at 10:21 am - Reply

    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.

  12. Vivek Luthra October 28, 2020 at 10:21 am - Reply

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

  13. Rudraksh Kumar October 28, 2020 at 10:21 am - Reply

    Sir can you please help me in understanding empty sequence?

  14. cereal killer October 28, 2020 at 10:21 am - Reply

    cant you put multiple information inside the variable? liek this language= "java". language= "java", :python" etc. if not, what is the solution for this?

  15. Nikhil Sharma October 28, 2020 at 10:21 am - Reply

    inspired

  16. Junioriz Cortes October 28, 2020 at 10:21 am - Reply

    Sir, you deserve to have millions of subscribers and you have mine. This is gold compared to udemy courses.

  17. Tô Lan Anh October 28, 2020 at 10:21 am - Reply

    thank you, very clear and helpful

  18. Aloysius Kuon October 28, 2020 at 10:21 am - Reply

    At 8:07, for for the if condition, does 'logged_in:' literally means logged_in = true? Or it depends on what its assignment was at the beginning of the code?

  19. 3-KD Gamer October 28, 2020 at 10:21 am - Reply

    he uses copy paste to its max 🙂

  20. Solomon Malih October 28, 2020 at 10:21 am - Reply

    Is it better to use ‘ or “ in python

  21. Sanjeev Kumar Singh-19CS48 October 28, 2020 at 10:21 am - Reply

    very helpful. thankyou ! so much.

  22. Fried Cereal October 28, 2020 at 10:21 am - Reply

    I'm probably not going to get an answer but at around 10:38 whenever I put that in it says true and when I display ID's they are the same. Am I doing something wrong or did they change how it works in the past 3 years

  23. bonsai lab October 28, 2020 at 10:21 am - Reply

    Thank you so much!!!!!

  24. sonet mollick October 28, 2020 at 10:21 am - Reply

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

  25. Deepak A October 28, 2020 at 10:21 am - Reply

    @Corey : Why did I find you so late….

Leave A Comment

*