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

  Рет қаралды 692,198

Corey Schafer

Corey Schafer

Күн бұрын

Пікірлер: 473
@harrywu3102
@harrywu3102 4 жыл бұрын
English is my second language. But I could even totally understood what Corey explained.
@raphaelmapp8407
@raphaelmapp8407 4 жыл бұрын
He has the best Python Channel on KZbin, hands down!
@us-xf3kk
@us-xf3kk 4 жыл бұрын
Pay him
@aka-Monster01
@aka-Monster01 8 ай бұрын
@@us-xf3kk u too pay him
@siddeeqklbm
@siddeeqklbm 5 жыл бұрын
udemy courses = 0 level understanding corey's python videos = 9999 level understanding
@alonbechor1842
@alonbechor1842 4 жыл бұрын
Corey is awesome. However, Is Udemy really that bad ?
@FinnedGuitar
@FinnedGuitar 4 жыл бұрын
@@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 жыл бұрын
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?
@sidabras
@sidabras 3 жыл бұрын
For those that take notes: # Comparisons: # Equal: == # Not Equal: != # Greater Than: > # Less Than: < # Greater or Equal: >= # Less or Equal:
@redneckengland
@redneckengland Жыл бұрын
my boy
@iyaiya9819
@iyaiya9819 Жыл бұрын
Thanks
@RoganOfficialShorts
@RoganOfficialShorts Жыл бұрын
thank u
@AMINE-yy3zb
@AMINE-yy3zb 6 жыл бұрын
Man. This feels like medicine. It makes one confident to do coding.
@12Prophet
@12Prophet 7 жыл бұрын
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 7 жыл бұрын
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 7 жыл бұрын
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 7 жыл бұрын
LOL :-))))
@ぽんぽこ-r1v
@ぽんぽこ-r1v 6 жыл бұрын
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 жыл бұрын
+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.
@benzeltser9851
@benzeltser9851 7 жыл бұрын
.Those lessons are pure gold
@Mobin92
@Mobin92 7 жыл бұрын
The code is basically unreadable...
@meltedcheese1908
@meltedcheese1908 6 жыл бұрын
+Mobin92 In what way? I can understand it all.
@NervylHraje
@NervylHraje 6 жыл бұрын
.Those_lessons_are_pure_gold()
@NervylHraje
@NervylHraje 6 жыл бұрын
@@CodingUnited just 8 months later ;)
@benzeltser9851
@benzeltser9851 3 жыл бұрын
@God player I said it almost 4 years ago Still super relevant.
@ryanlobo7530
@ryanlobo7530 5 жыл бұрын
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 Жыл бұрын
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.
@anshulargelwar9896
@anshulargelwar9896 7 жыл бұрын
Corey, you are the best teacher I have seen. Thanks for such a wonderful videos.
@coreyms
@coreyms 7 жыл бұрын
Thanks!
@智姐带你看世界
@智姐带你看世界 6 жыл бұрын
You are absolutely the best Python teacher!!!
@NuEnque
@NuEnque 5 жыл бұрын
you're hot!
@thebarch7594
@thebarch7594 4 жыл бұрын
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!
@jhennique6158
@jhennique6158 6 жыл бұрын
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.
@engr.mubasharhanif
@engr.mubasharhanif 8 ай бұрын
hey, are you programmer or python expert now?
@adv2164
@adv2164 4 жыл бұрын
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.
@engr.mubasharhanif
@engr.mubasharhanif 8 ай бұрын
hey, are you programmer or python expert now?
@saintz_aj
@saintz_aj 2 жыл бұрын
I just finished listening to a 3 hour lecture that I learned nothing despite asking questions to clarify and elaborate condition using examples. Thanks for this, well delivered and easy to understand.
@guess2014
@guess2014 4 жыл бұрын
All comments are 100 % positive..! Congrats Corey Schafer. This shows your effort.
@nikosbako1974
@nikosbako1974 Жыл бұрын
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
@veneranurdin8410
@veneranurdin8410 6 жыл бұрын
I am amazed by your ability to explain things in simple and quick manner. Thanks a lot for tutorials! God bless you!
@gunterclements6856
@gunterclements6856 4 жыл бұрын
Corey, I would donate to you, but all of my money went to the university that taught me absolutely nothing.
@barathhari3759
@barathhari3759 8 ай бұрын
💯
@Sukhman_preet_singh
@Sukhman_preet_singh 7 ай бұрын
savage hAHA
@jaxsoncourteau3678
@jaxsoncourteau3678 2 ай бұрын
😂 Was thinking the exact same!🎉
@charleswade137
@charleswade137 Ай бұрын
Same here bro 😢
@bhargavikommineni6970
@bhargavikommineni6970 6 жыл бұрын
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!!!
@WathiqHAtrah
@WathiqHAtrah 4 жыл бұрын
You are Print "The God of Python", your tutorials are very concise, clean, clear and very easy to understand...
@DarnastTFT
@DarnastTFT 5 жыл бұрын
Corey, thank you so much for those videos. The best teacher I have encountered.
@tahakhidr
@tahakhidr 6 жыл бұрын
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
@infinitus.
@infinitus. 7 жыл бұрын
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.
@engr.mubasharhanif
@engr.mubasharhanif 8 ай бұрын
hey, are you programmer or python expert now?
@ssaeed9574
@ssaeed9574 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.
@redneckengland
@redneckengland Жыл бұрын
yes
@jz343
@jz343 6 жыл бұрын
Thank you very much, simplified and fast. definitly one of the best toutorials :)
@grupa_autism
@grupa_autism Ай бұрын
Corey thank you so much! Your courses are understandable and your teaching is not complex! you actually helped me learn python and i am very thankful.
@robertreid8944
@robertreid8944 2 ай бұрын
Just wanted to say great find, this page. I have tried Python a few times but really want to get into it, seeing the way AI is developing. Your videos are precise, detailed and extremely helpful. I find myself watching and learning instead of playing some games. Thank you. Looking forard to completing this list of 148 tutorials. Thank you
@kaustubh1969
@kaustubh1969 5 жыл бұрын
Man this is amazing...!! I am a finance grad and I am picking up programming skills as they are getting necessary day by day.. By goal is to be able to make trading algos.. and mate your videos are amazing for a non programmer like me!! The day I get my first job I will donate to you.... thank you so much!!
@coreyms
@coreyms 5 жыл бұрын
Thanks!
@JenPurple2022
@JenPurple2022 5 жыл бұрын
Concise, constructive and smooth.
@anhminhtran7436
@anhminhtran7436 6 жыл бұрын
Great tutorial =)) Thanks man, really appreciate your work. By the way, I just check and actually if you set condition = 10 or 100 or -5,... THE CONDITION IS NEITHER TRUE OR FALSE. The reason why it print "Evaluated is False" in your code is because you use the "else" statement. It just means that the condition is NOT TRUE. It turns out that 1 is True and 0 is False and that's it. Please try this code: condition = 10 if condition == True: print('Condition is true') elif condition == False: print('Condition is false') elif condition == None: print('Condition is none') It prints nothing, same for empty List,... Still, your tutorial is awesome :)) Keep up the good work!
@deadchannel7394
@deadchannel7394 5 жыл бұрын
Thank you so much, I was stuck and then I found this video, couldn't thank you more.
@douglaslawrie3449
@douglaslawrie3449 6 жыл бұрын
Learning Python for the first time and finding these tutorials extremely easy and helpful. Thanks!
@glamify524
@glamify524 2 жыл бұрын
That explanation of what evaluates to false was extremely helpful
@ABShinobi
@ABShinobi 5 жыл бұрын
The best tutorials on the net...
@jakethesnek
@jakethesnek Жыл бұрын
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!
@garrtrigger
@garrtrigger 5 жыл бұрын
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.
@danomar101
@danomar101 5 жыл бұрын
Thanks, I might be a complete nobody in python, but I got these vids to keep succeeding.
@lelly1010
@lelly1010 10 ай бұрын
2024 and your still helping learners!! big thanks! your explanation made a lot more sense then my course in Udacity!
@alphabetsalphabets5242
@alphabetsalphabets5242 4 жыл бұрын
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.
@Cameouo
@Cameouo 2 жыл бұрын
I am telling you. This man is gold!
@rajgiriyt8494
@rajgiriyt8494 3 жыл бұрын
person with 0% haters.. love you from nepal
@joshcummins3916
@joshcummins3916 4 жыл бұрын
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.
@Steadyrock100
@Steadyrock100 Жыл бұрын
You make Python easy! After this tutorial, im ready to take on more Python!!!! Thank You!!!!!
@cemalcakir
@cemalcakir 4 жыл бұрын
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))
@b2224567
@b2224567 3 ай бұрын
It's nice because he also covers all the caveats and gotcha's that you might encounter or someone can ask you at an interview.
@dhk.yankees
@dhk.yankees 4 жыл бұрын
I'm from Bangladesh man.And Your Explaining level is Brilliant.Love you man.
@annasergienko409
@annasergienko409 4 жыл бұрын
Can't stop watching! I love these videos! Thank you so much
@anuragparo6595
@anuragparo6595 5 жыл бұрын
best tutorials in whole universe.
@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 🤝.
@kalyanit8551
@kalyanit8551 5 жыл бұрын
Easy to grasp the subject with full clarity. Thanks for make it free.
@Upskillingclub
@Upskillingclub 4 жыл бұрын
now i am sure I am going to be a program developer. thank you Corey Schafer. Gonna join your digital academy.
@Drone360pilot
@Drone360pilot 3 жыл бұрын
Best tutorials for Python that I have ever seen. Deeply appreciated 🙏🏼
@saiyam2509
@saiyam2509 3 жыл бұрын
You made learning Python so interesting and easy. What a Saviour!!! Thank you!
@Journal_with_aishh
@Journal_with_aishh Жыл бұрын
The simplest way of teaching 😍👍
@andyn6053
@andyn6053 5 жыл бұрын
You explain much better than my university teacher!
@itguy108
@itguy108 5 жыл бұрын
Very helpful Python serial tutorial. Love it. Thanks.
@shubhadipghosh6437
@shubhadipghosh6437 Жыл бұрын
These videos are really awesome. When it comes to switch cases, Python 3.10 introduces the match-case statement, which offers a switch case implementation for Python.
@_____JUNPark_____
@_____JUNPark_____ Жыл бұрын
Also this video didn't show: if (e := 3) < 4: print(f"saved 3 to {e=} and e is less than 4.") if 4 > 3 > 2: print("3 is less than 4 and 3 is more than 2") if 3 == 3 > 2: print("3 equals to 3 and 3 is more than 2") Hope this helps!
@farshad-hasanpour
@farshad-hasanpour 4 жыл бұрын
best python tutorial ever
@soumyazyx
@soumyazyx 5 жыл бұрын
Thank you Corey for your time and effort. Keep spreading the knowledge.
@Hrit
@Hrit 4 жыл бұрын
Seriously the best python course. Anyone reading this comment - Watch these videos + W3 schools Python (Best Combo)
@DataScientist268
@DataScientist268 4 жыл бұрын
Thank you.
@uzeyirkeskin2178
@uzeyirkeskin2178 8 ай бұрын
even though english is not my native language but i can understand very easily and clearly. amazing explanation amazing accent amazing teacher
@f7oor
@f7oor 4 жыл бұрын
Thanks a million for these tutorials Corey!
@amirhossain2k9
@amirhossain2k9 7 жыл бұрын
great one. love the examples on false values considered on python. thanks man.
@Mobin92
@Mobin92 7 жыл бұрын
What?
@GLDN06
@GLDN06 3 жыл бұрын
Man, I am back after a few months. Man computer science is good but requires rigorous practice. Hopefully tomorrow for my test this helps! Thank you!
@arjungoud3450
@arjungoud3450 3 жыл бұрын
Thank a lot, with 2 min watch I understood properly.
@abdullahyaqoob3741
@abdullahyaqoob3741 5 жыл бұрын
or, and are unlimited you can add what ever number of condition when use these two conditions. Good job man
@aatt3209
@aatt3209 4 жыл бұрын
another excellent tutorial, CS is the best Python teach out there!
@Anonymous_019
@Anonymous_019 Жыл бұрын
Def one of the best tutorials out there. Love the content a lot mate. Much respect to you Corey :)
@mohammadsalahradi2293
@mohammadsalahradi2293 3 жыл бұрын
I like your videos. You explain complex things in an easy way. Your videos are essentially beneficial kickstart for beginners. Keep going.
@rizwanghzzaal1347
@rizwanghzzaal1347 4 жыл бұрын
Corey Thanks for amazing tutorials will recommend to my colleagues as well
@NextLevelDeveleper
@NextLevelDeveleper 2 жыл бұрын
Udemy is Overrated for nothing. THANK YOU COREY.GOD BLESS YOU.
@martyedge
@martyedge 3 жыл бұрын
You, Sir, are a lifesaver.
@mikehattias5837
@mikehattias5837 5 жыл бұрын
Wasted my money on udemy. These are so succinct and comprehensive. I don’t feel any resistance or boredom watching and following the material
@fahad203
@fahad203 5 жыл бұрын
Why why didn't I find these videos before. I wasted so much money in paying for live classes. You owe me money Corey
@coreyms
@coreyms 5 жыл бұрын
Haha. Check is in the mail
@NSPG911
@NSPG911 4 жыл бұрын
@@coreyms lol
@mohammadidreesbhat1109
@mohammadidreesbhat1109 9 ай бұрын
@Corey Sir, True is 1 or any other non zero number. False is 0. When we add some number by True. That values gets incremented by one.
@frankpercicotte
@frankpercicotte 3 жыл бұрын
Wonderful lesson, your teaching is easy to understand! Thanks!
@md.shorifulislam8366
@md.shorifulislam8366 6 жыл бұрын
Amazing Bossssss ! Salute !! I am getting very inspired thinking that I can have much knowledge from you....many many thanks !!!
@MadBunnyRabbit
@MadBunnyRabbit 5 жыл бұрын
JS has both switches and else if. Functionality may be the same but assembly is different. As such else ifs are faster than switches when there's just few conditions, but this quickly changes the more conditions you add. But yeah, sure, it's functionaly the same.
@alexk2883
@alexk2883 4 жыл бұрын
By the way, your videos are really awesome i.e even I understand what they are. Thanks for your commitment.
@juniorizcortes6370
@juniorizcortes6370 4 жыл бұрын
Sir, you deserve to have millions of subscribers and you have mine. This is gold compared to udemy courses.
@philippe6724
@philippe6724 6 жыл бұрын
Fantastic teacher and pedagogue !
@TarynMychalMai
@TarynMychalMai 4 жыл бұрын
I feel wayyy better about conditionals, thank you!
@helenozuna5152
@helenozuna5152 2 жыл бұрын
I am loving your tutorials. I am just getting into programming. I am putting my own exercises together from each of your videos. By any chance, have you created exercises that I would be able to follow so that I can put what I have learned so far into action?
@isratjahan7653
@isratjahan7653 6 жыл бұрын
I'm fascinated by your automated tone
@sonetmollick4630
@sonetmollick4630 4 жыл бұрын
Great lecture. I learned a lot from here in short period of time.
@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)
@abhishekstatus_7
@abhishekstatus_7 4 жыл бұрын
Best #Python tutorial i have ever found !
@blade913
@blade913 5 жыл бұрын
Thank you so much for the explanation. My current instructor just tells me to look at her badly laid out notes, and doesn’t explain how some methods work. She can’t simplify....which is frustrating.
@xinries
@xinries 3 жыл бұрын
The thing I love is that you explain all of it in such short time! Thank you so much!
@you_are_a_boer
@you_are_a_boer 2 жыл бұрын
I am a teenager and I have found your lessons very helpful. Keep it up!
@UnoriginalF_
@UnoriginalF_ 2 жыл бұрын
CRINGe
@thirdwavve2748
@thirdwavve2748 2 жыл бұрын
Thanks for the work you put into these tutorials. What do you recommend is the best way to follow-along with these tutorials for maximum results?
@sonnman1221
@sonnman1221 3 жыл бұрын
I love your tutorial keep up the good work 👍 I liked and subscribed👍
@himangshude3546
@himangshude3546 Жыл бұрын
5:29 in python match case is available in version 3.10 and onwards, which exactly works like switch case in other programming languages🎉😅 Loved the tutorial❤
@chaitanyayeturi1312
@chaitanyayeturi1312 3 жыл бұрын
First of all, your teaching style is good, and anyone grabs ur teachings easily, and thanks for teaching us. you are the best tutor I have ever come up with in python language. can u suggest any python language book, which is best to go through other than your channel? Moreover, I am a beginner to python language I thoroughly enjoyed ur videos, if u can suggest me best python book to ur sensibility and I guess it suits me and it helps me to learn further (I like physical like books). In case if u written any books related to this language can u suggest one (or) your favorite book, please......................................
@yogabull5929
@yogabull5929 6 жыл бұрын
Dude, thanks for this video. I'm wrapping my head around this !
@shreyaschavhan5522
@shreyaschavhan5522 Жыл бұрын
# False Values: 12:00 - False - None - Zero of any numeric type - Any empty sequence. For example, '', (), [] - Any empty mapping. For example, {}.
@donokonkwo5384
@donokonkwo5384 2 жыл бұрын
This guy is like the Organic Chemistry Tutor of Python
@vivekluthra21
@vivekluthra21 4 жыл бұрын
Thank you so much! For explaining all the things in such a easy way.
@chrisatronx
@chrisatronx 4 жыл бұрын
py_ability = 'increased' if py_ability == 'increased': print('Great Video!') elif py_ability != 'increased' print('I should probably just watch the video again') else: print('Watch Corey Schafer Python Tutorials!')
@JMZReview
@JMZReview 4 жыл бұрын
//OR: py_ability = "increased' if py_ability == 'increased': print('Great Video!) else: print('I should probably just watch the video again')
@debayanroy5434
@debayanroy5434 6 жыл бұрын
I truly appreciate you example picking skills :)!!!....
@hamzerada6758
@hamzerada6758 3 жыл бұрын
Literally explained it better then the teacher I have in this course LOL
Python Tutorial for Beginners 8: Functions
21:48
Corey Schafer
Рет қаралды 1,1 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 26 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 8 МЛН
2 Years of C++ Programming
8:20
Zyger
Рет қаралды 1,5 М.
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 320 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 632 М.
Python Tutorial for Beginners 4: Lists, Tuples, and Sets
29:05
Corey Schafer
Рет қаралды 1,5 МЛН
you need to learn Python RIGHT NOW!! // EP 1
17:42
NetworkChuck
Рет қаралды 2,4 МЛН