Тёмный

if if if if if....elif 

NetworkChuck
Подписаться 4 млн
Просмотров 314 тыс.
50% 1

What I use to learn (the BEST IT training): ntck.co/itprotv (30% off FOREVER) *affiliate link
In this episode of Learn Python RIGHT NOW, NetworkChuck teaches how to let good Ben in using Nested Ifs and Elif statements!
FREE Python Lab: ntck.co/pythonep5
Support the course: ntck.co/pythonrightnow
🔥🔥Join the NetworkChuck membership: ntck.co/Premium
**Sponsored by ITProTV
SUPPORT NETWORKCHUCK
---------------------------------------------------
➡️NetworkChuck membership: ntck.co/Premium
☕☕ COFFEE and MERCH: ntck.co/coffee
Check out my new channel: ntck.co/ncclips
🆘🆘NEED HELP?? Join the Discord Server: / discord
STUDY WITH ME on Twitch: bit.ly/nc_twitch
READY TO LEARN??
---------------------------------------------------
-Learn Python: bit.ly/3rzZjzz
-Get your CCNA: bit.ly/nc-ccna
FOLLOW ME EVERYWHERE
---------------------------------------------------
Instagram: / networkchuck
Twitter: / networkchuck
Facebook: / networkchuck
Join the Discord server: bit.ly/nc-discord
0:00 ⏩ Intro
2:50 ⏩ Figure out if Ben is EVIL
3:23 ⏩ STEP ONE: Ask Ben if he is evil
4:22 ⏩ NEW CONCEPT: Nested IFs!!
5:48 ⏩ Nest the code under the Second If statement
6:38 ⏩ No nice Greeting for Nice Ben?!
7:18 ⏩ Make Ben feel special!!
9:50 ⏩ Robot Barista is doing a great job but changes are needed
11:03 ⏩ Messy fix for the menu
12:46 ⏩ NEW CONCEPT: Else If (ELIF)
14:58 ⏩ Let’s add an else
16:25 ⏩ CHALLENGE: Whipped Cream??
17:04 ⏩ Outro
AFFILIATES & REFERRALS
---------------------------------------------------
(GEAR I USE...STUFF I RECOMMEND)
My network gear: geni.us/L6wyIUj
Amazon Affiliate Store: www.amazon.com/shop/networkchuck
Buy a Raspberry Pi: geni.us/aBeqAL
#python #pythonrightnow #learnpython

Наука

Опубликовано:

 

4 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 797   
@NetworkChuck
@NetworkChuck 2 года назад
What I use to learn (the BEST IT training): ntck.co/itprotv (30% off FOREVER) *affiliate link In this episode of Learn Python RIGHT NOW, NetworkChuck teaches how to let good Ben in using Nested Ifs and Elif statements! FREE Python Lab: ntck.co/pythonep5 Support the course: ntck.co/pythonrightnow 🔥🔥Join the NetworkChuck membership: ntck.co/Premium **Sponsored by ITProTV 0:00 ⏩ Intro 2:50 ⏩ Figure out if Ben is EVIL 3:23 ⏩ STEP ONE: Ask Ben if he is evil 4:22 ⏩ NEW CONCEPT: Nested IFs!! 5:48 ⏩ Nest the code under the Second If statement 6:38 ⏩ No nice Greeting for Nice Ben?! 7:18 ⏩ Make Ben feel special!! 9:50 ⏩ Robot Barista is doing a great job but changes are needed 11:03 ⏩ Messy fix for the menu 12:46 ⏩ NEW CONCEPT: Else If (ELIF) 14:58 ⏩ Let’s add an else 16:25 ⏩ CHALLENGE: Whipped Cream?? 17:04 ⏩ Outro
@aidanharan3641
@aidanharan3641 2 года назад
Hello Chuck!
@BHighTech
@BHighTech 2 года назад
Hii
@as0580
@as0580 2 года назад
Hululu
@ganjiguuramatsaihkan8627
@ganjiguuramatsaihkan8627 2 года назад
Guess I'm second one xd
@aidanharan3641
@aidanharan3641 2 года назад
Chuck can you do more cyber security videos in the future
@Aqua021
@Aqua021 2 года назад
Hey Chuck please never stop the series i started learning it because of you man
@ablesentry7070
@ablesentry7070 2 года назад
Thanks, Chuck for continuing this series. I've recently gotten into Linux/Virtualisation/Python because of your channel. I love ALL of it, learning something new each day.
@frosty7845
@frosty7845 2 года назад
Same
@rmp5640
@rmp5640 2 года назад
Where di you guys learning?
@animepfpkid5216
@animepfpkid5216 2 года назад
@@ISCARI0T 🤡
@marketingsolutionstx
@marketingsolutionstx 2 года назад
Me too. I threw my tv out of the window since I inside chuck RU-vid Chanel AND NO if or else for me since then (-:
@shortthings8160
@shortthings8160 2 года назад
@@ISCARI0T LMFAO
@tomscott8820
@tomscott8820 2 года назад
I used to be a fan but after this masterpiece i'm a whole air conditioner
@caam0000
@caam0000 2 года назад
No
@tomscott8820
@tomscott8820 2 года назад
nice video
@tomscott8820
@tomscott8820 2 года назад
@@caam0000 how did you find out
@caam0000
@caam0000 2 года назад
@@tomscott8820 😂
@vicki-annthornton8330
@vicki-annthornton8330 Год назад
🤣🤣🤣🤣🤣 that's awesome
@HasGoesWild
@HasGoesWild 2 года назад
To the people this was recommended to 10 years in the future NetworkChuck was the most consistent youtuber back in 2022
@Rajab649
@Rajab649 5 месяцев назад
It is now two days before 2024
@Rajab649
@Rajab649 5 месяцев назад
His teaching method is great
@mr_hashbrown
@mr_hashbrown 2 года назад
Thank you for the new episode! So far, you're the only fun, interesting and entertaining person I've seen to teach people Python and even Linux, making it look so easy!
@NetworkChuck
@NetworkChuck 2 года назад
Thank you 😊
@allfun2468
@allfun2468 2 года назад
Your are not wrong about that
@mr_hashbrown
@mr_hashbrown 2 года назад
@@NetworkChuck, you're welcome!
@alexpenna
@alexpenna 5 месяцев назад
That's the best user name I have seen this month
@mr_hashbrown
@mr_hashbrown 5 месяцев назад
@@alexpenna 😂😂
@aliyahmillan3882
@aliyahmillan3882 2 года назад
I wish my professors were like you. I swear I learn more from watching your videos than sitting for hours in a class. Thanks for the great content.
@vinnieg6161
@vinnieg6161 Год назад
good teachers are everything
@Saffron777
@Saffron777 2 года назад
I'm taking python programming in college right now and your series is ALMOST on track with our class... I wish I had this video before my test yesterday because I got points off on the elif questions 😵‍💫 if this was posted on Tuesday I might have had a higher grade on my midterm!!!!
@evgeniyalafev9781
@evgeniyalafev9781 Год назад
why are you making him feel guilty? lol j/k
@conm9891
@conm9891 Год назад
Huh? You first mention a test, then midterm. If you didnt know you have a midterm then you have some bigger issues then your grammar.
@gaatjenietsaan88
@gaatjenietsaan88 Год назад
I watched all these video's today i am hooked
@Krullfath
@Krullfath 9 месяцев назад
@@conm9891 It seems you misunderstood and misinterpreted the timeline of events in the original comment. Your reply criticizes the grammar of the original commenter, but the comment itself acknowledges the presence of grammar mistakes, so this criticism is redundant.
@MansoorBarri
@MansoorBarri 2 года назад
Challenged solved: elif order == "Latte": whip = input("Do you want extra whip cream?") if whip == "yes": price = 11 else: price = 9
@NetworkChuck
@NetworkChuck 2 года назад
Excellent job!
@vicki-annthornton8330
@vicki-annthornton8330 Год назад
thanks so much I could not figure it out - of course we add another variable! I was trying to allocate it to order
@MansoorBarri
@MansoorBarri Год назад
@@vicki-annthornton8330 cheers
@priyanshdahiya3043
@priyanshdahiya3043 2 года назад
New episode on python made super simple.This is very "unique" man. Love how you make things so interesting.
@vindicatedafi
@vindicatedafi 2 года назад
Doing a python course for college super helpful. Something about the way you present the material is very simple and concise keep up the great work!
@josue6131
@josue6131 2 года назад
I’ve gone through this whole series in a night and I can’t be thankful enough for 1) the raspberri pi I bagged on your birthday lol and the amount of knowledge and how easy you explain it to someone who has 0 idea about anything like this! I finished the challenge and felt so good, I will forever thank you for this and your other videos Chuck! I hope you read this and acknowledge how crucial you are to an entire generation and the ones to come!
@dystopianpalace9778
@dystopianpalace9778 2 года назад
love your python course ♥
@MindFuel7
@MindFuel7 2 года назад
Thanks God bro you're back with Python Episode kindly complete it
@surecode6763
@surecode6763 2 года назад
chunk = input(" continuing teaching? ") if chunk = "yes": print("thanks, keep teaching") exit() else: print("you must teach, you can't leave us😅")
@foxdk
@foxdk 2 года назад
Use "==" to compare instead of "=". What you're doing in your example, will always return the thanks, since you're reassigning the value to the variable chunk.
@akshatkumar369
@akshatkumar369 2 года назад
I just love coming to this channel and learning some thing new each day! Thanks, Chuck!
@depends3652
@depends3652 2 года назад
Amazing so far. I went from not knowing code yesterday to writing my own Barista in tandem with this. Even have a replit account now for it. Going to attempt to build a game with only what was learned from 1-5. Honestly almost had it but could not figure out "elif" on my own. Keep up the great work! You are honestly one of the greatest teachers I have had the pleasure to learn from.
@20002000l
@20002000l 2 года назад
Since you call the exit() function when Ben is evil, you can remove the else function and just print out the text once (instead of twice, like you have now) That makes the code much cleaner
@Sensei__Nate
@Sensei__Nate 8 месяцев назад
Dude I love the pauses bc it makes me actually try and think it through, and I also did the challenge first try !! This course is sick!
@mihrangamerz2236
@mihrangamerz2236 2 года назад
Don't ever quit from RU-vid you are awesome
@premiumleader8948
@premiumleader8948 2 года назад
Please upload more,I love these videos they make learning Python super easy,I haven’t found anyone or any source who explains Python so well as you.
@shortsman380
@shortsman380 2 года назад
Thank you Chuck. Because of you, I have started learning python and have just engaged in virtualization
@jadetrue
@jadetrue 2 года назад
💯Looking forward to the next episode. I absolutley love your teaching style and I cannot wait to learn more with you. Please do keep doing the videos (if you can!) 🙏
@Zayn2.
@Zayn2. 2 года назад
love your python course 👍
@Fuzzyfull
@Fuzzyfull 2 года назад
Great video! I think you skipped over one important thing regarding the "elif": The main difference between sequential if's and if..elif...elif block is the fact that 'if' statements will always be evaluated, but if...elif block will be exited at the first successful evaluation and further elif's will be omitted.
@kindlehaha
@kindlehaha 2 года назад
@Islanddreamer430
@Islanddreamer430 2 года назад
It took me hours to figure this out 🤦🏽‍♀️
@Islanddreamer430
@Islanddreamer430 2 года назад
Love your channel Network Chuck. It was “duh” on my part because I also have a text book. Your videos are helpful. And thanks for the tip @kristaps bergfelds.
@brandonpike7046
@brandonpike7046 Год назад
Oh my god your teaching style is really effective. Your 3 (4) classes are the only experience I e had with coding and I was able to solve the “allow evil Ben into the shop” problem all by myself. Thank you so much for this!!!
@MasoodOfficial
@MasoodOfficial 2 года назад
Amazing!!!! The best tutorials ever, can't wait for more.
@NetworkChuck
@NetworkChuck 2 года назад
Thank you!
@mitchellkeller6562
@mitchellkeller6562 2 года назад
I've started college for programming and had little to none knowledge of this and the professors make it seem more complicated then it is and your showing it's easier then I thought it would be. Thanks for this series
@underthewatar1
@underthewatar1 2 года назад
Thanks for giving us great videos,I honestly mostly like how energetic you are in videos thanks so much!!!
@NoahLA
@NoahLA 2 года назад
I’m so happy he’s continuing the series!
@rodriguesjoao88
@rodriguesjoao88 2 года назад
I love your excitment explaining such a simple if, elseif, else statement. Great job! ;)
@SunDevilThor
@SunDevilThor 2 года назад
Chuck, all of your outro music is dope! I would love a link to a Spotify playlist if you have one available. I’ve also listened to your RU-vid live music video a few times.
@Motivation2Invest
@Motivation2Invest 2 года назад
Exceptional this is better than any university course, would love more soon! Happy to pay for large course with you teaching,
@nathanvargas713
@nathanvargas713 Месяц назад
Hey Chuck, this python playlist is truly the best I've ever seen. I literally opened a new file and started coding from your videos when I was nervous to even start by doing it. Your a great teacher and I learned a lot from your videos, excited to watch more and learn more.
@Jake-dc3bv
@Jake-dc3bv 2 года назад
I'm not sure what you've got against green tea but as a complete python noob this is one of the most easiest to follow explanations of if, elif, else I've watched!
@beast6092
@beast6092 2 года назад
You've got to love his enthusiasm!
@saurbh22
@saurbh22 2 года назад
The way you explain is really I love it, you go in core of any topic thats amazing...
@NetworkChuck
@NetworkChuck 2 года назад
Thank you!
@Max-bk7us
@Max-bk7us 2 года назад
I love your enthusiasm towards python, honestly infective
@thaliaortiz5563
@thaliaortiz5563 Год назад
I have been having issues with knowing when to use nested if statements vs. elif and you cleared that right up. Thank you so much for this video!!
@link_0nroy
@link_0nroy 2 года назад
Thank you for making this python so quick!!!
@geef0813
@geef0813 8 месяцев назад
I’ve been a dog trainer for the last 6-7 years. I was a financial analyst who wrote a lot of VBA. I’m shocked and excited to see how similar python and VBA are so far. I was afraid I was in for a complete relearn, it it looks like I can write code like I was used to and just figure out the little quirks that are different (Colon after the if statement, etc. ). I’m also going through your ccna videos series. I’m looking into getting into cyber security. And trying to get the basics down before I dive in. Thanks so much.
@lasagne357
@lasagne357 2 года назад
Thank you for the lessons Chuck, You help us so much
@sgtfatboy1
@sgtfatboy1 2 года назад
Thank you Chuck, Python has been a bit daunting for me in my career, but thanks to you and your mini courses I feel like I am actually getting the hang of it. I can't wait for the next one.
@rickygarcia8150
@rickygarcia8150 Год назад
Dude your class is so amazing. Ive learned a bunch from your videos and that whipped cream challenge thing had me for a loop till I figured it out. Keep doing what your doing brother.
@monicamoses420
@monicamoses420 27 дней назад
It's like the tutorial is one on one and not on youtube! Chuck, you make it so easy to understand! Thanks!
@sevomyvrt3236
@sevomyvrt3236 2 года назад
Thank you very much for the course!
@OkanaganLife
@OkanaganLife Год назад
Hey @NetworkChuck. I'm 42 years old and have been wanting to learn programming my whole life, but never got around to it. Thanks for making this so accessable. I've been really enjoying your videos and how you make it fun and simple. Keep doing what you do man, because it's so good. God bless brother.
@dmitrydji6172
@dmitrydji6172 Год назад
same thing here man, 41. My daughter got me into it, but Chuck is making it easy.
@reastle1307
@reastle1307 2 года назад
you are my best teacher! Honestly the way u teach is nothing like teacher i know in real life ❤💻💻
@NetworkChuck
@NetworkChuck 2 года назад
Thank you 😊
@cyberwarrior3257
@cyberwarrior3257 Год назад
Thank you chuck. I added the and condition along with the first if statement instead of using nested ifs.
@deadeyeshooter8818
@deadeyeshooter8818 Год назад
Hello Chuck! First of all....You did what my previous teacher couldn't do for a pretty high salary. I'm glad I've found your channel in time, maybe i'm not totally lost after all. In my school they used every single class for torturing us mentally then somehow force the most likely raw boring staff into our head without logic or better understanding. I can't thank you enough for your precious teaching that fixes my ruined education.
@hizaack
@hizaack 2 года назад
Thank you brother for this privilege and opportunity. I'm enjoying these classes. I love them. God bless you brother❤️
@DS6Prophet
@DS6Prophet 2 года назад
Thanks for the amazing videos, Chuck! You are one of the best & most enjoyable tutors!
@Axel-jv8wb
@Axel-jv8wb 2 года назад
i am glad that in my university we learned c language, you just need to memorize the name of some instruction (like elif) but the logic is the same
@jofrankieee
@jofrankieee 2 года назад
Thank this is what I was waiting for this is awesome 🤩 thank you 😊
@achad_14
@achad_14 2 года назад
thank you for sharing all this knowledge Chuck! take care!
@IvanAAnnuh
@IvanAAnnuh Год назад
You do this with so much passion and enthusiasm, it greatly motivates me!
@OneWhoWas
@OneWhoWas Год назад
I have my 12 yo following along with your exercises. He's getting there. We sit down and watch your videos, then he goes and tries it out, I make myself a coffee, and I can help him when he's stuck. It's an evening routine and gets him away from the video game world for a bit to learn something useful. It's awesome.
@pollianapavloski7911
@pollianapavloski7911 2 года назад
Dude you are AMAZING, love this content, it's making me want to learn and not give up, congrats for being awsome!
@EgaHemachandra
@EgaHemachandra 2 года назад
Yeeeeeee from Monday I am going to have my python basic classes but I am already getting ready!!!!!!!! With you chuck thank youuuu
@unpredictableishere6692
@unpredictableishere6692 2 года назад
I LOVE THE GRIND MAN KEEP IT UP
@anshumishra9368
@anshumishra9368 2 года назад
Cause of only you guys David and chuck , you guys are making my entire journey so simple and kinda fun to learn thanks chuck and David love u both ❤ keep going like this ❤
@shelbydorn4190
@shelbydorn4190 2 года назад
I love how excited you get about this stuff!
@uhlersoth99
@uhlersoth99 2 года назад
What a bundle of positive energy you have in your videos. your attitude is like sunshine on a cloudy day. You are addictive to listen to.
@KBeast27
@KBeast27 3 месяца назад
This whole series so far has been amazing! You're a great teacher, keep up the great work! I'm mainly commenting for the RU-vid Al Gore rhythm because you deserve more views. Lol
@xeliloruclu6607
@xeliloruclu6607 2 года назад
You are explaining better than my teacher . Its perfect man
@HolyGunsmith
@HolyGunsmith 2 года назад
Thank you so much for supplying everyone with this series! I was able to complete the whipped cream challenge on my first try. I am very glad that I am actually learning!!
@Mojzu
@Mojzu 2 года назад
almost 2m subs? omg i remeber when i last time wached yours movies you had under 100k sub, congrats!
@Pianodaddyy
@Pianodaddyy 2 года назад
Where did you go to school Chuck? I’m specializing in cybersecurity, and it feels like as my courses progress, your videos are nearly side-by-side to mine 😂
@ogr3j3ct3d_o7
@ogr3j3ct3d_o7 2 года назад
Because of you I love learning. Thank you for being so awesome!
@spammers7431
@spammers7431 2 года назад
Love you chuck keep going❤
@hilldominique13570
@hilldominique13570 2 года назад
Thank you for the explanation on elite statements. It really helped me understand elif statements better.
@Rise2034
@Rise2034 2 года назад
This is the best python course ever! :) so well explained
@kasuma6250
@kasuma6250 2 года назад
Thanks bro you're back with Python Episode kindly complete it
@Quintren
@Quintren 2 года назад
Thank you! Really appreciate the tutorial!
@abhishekpatil3086
@abhishekpatil3086 Год назад
I loved this series, at the end i wanted to test something so i went ahead and added a if statement if they don't order something on the menu then quantity and total becomes 0 and the code prints goodbye!, i love this !!
@mamladon7434
@mamladon7434 2 года назад
love your course
@midimusicforever
@midimusicforever 2 года назад
The perfect theme song: Placeboing - If
@chillytrio
@chillytrio Год назад
Thanks for continuing these episodes ☺️
@ThrillartsStudio
@ThrillartsStudio 2 года назад
thanks man i needed that if reminder
@krunoslavkrklec4857
@krunoslavkrklec4857 Год назад
thanks for making the series. I love python and I just started to learn it. : )
@jeffyramalhocardioworkouts
@jeffyramalhocardioworkouts 2 года назад
I love your content mate! ❤️
@SSmoonwalker
@SSmoonwalker 2 года назад
Hey Chuck, you teach so well, and would love to continue with your series. However i hope you remain consistent with it, this time around.
@andreea45890
@andreea45890 2 года назад
I was so happy to open RU-vid and see your new video, just like Xmas gifts under the tree
@isshwor
@isshwor 2 года назад
Man you are an absolute god and also I really like your outro/ intro music, can you link me to that song or whatever?
@fellipefoliveira
@fellipefoliveira 2 года назад
Chuck is legendary XD. Thank you so much for the content! ^_^
@viccc_1767
@viccc_1767 2 года назад
Love your way of teaching. It's like Blue Clues but for adults. It helps me understand what you're teaching and you're also entertaining me while learning which makes the learning experience better.
@simplysimple7391
@simplysimple7391 2 года назад
The meme content from the previous video was 10/10, love these videos bro
@eskey3
@eskey3 2 года назад
It’s fun watching your videos, thanks
@sagarawale5415
@sagarawale5415 2 года назад
Awesome Content, love it 😍
@deadeyejac
@deadeyejac 2 года назад
Please continue this video series. It is terrific.
@bryantforsythe728
@bryantforsythe728 2 года назад
Thanks Chuck! Bringing knowledge to the people!
@lilme3792
@lilme3792 2 года назад
more python tutorial plkease, you're the perfect teacher for teaching python!
@user-ki5tt4wm9y
@user-ki5tt4wm9y Месяц назад
Your the only person who shows enthusiasm in teaching great teacher
@michalischristodoulou1337
@michalischristodoulou1337 Год назад
u are the only 1 i found to break this down soo mutch thank you
@antonimisenglish5960
@antonimisenglish5960 2 года назад
Finaly hes back when i need em!
@Renotrigger
@Renotrigger 2 года назад
In high school (80's), my nickname was "Nerd" and I took that as a badge of honor, and I now crown you as a Nerd (Never Ending Radical Dude), yes I made that up. Thank you.
@Wallakapalla
@Wallakapalla 2 года назад
You just have your own art to teach tech
@NickWindham
@NickWindham Год назад
More Python videos from you would be great. You break it down more simply and manage to make it entertaining. Valuable content
@kennethmantis7270
@kennethmantis7270 Год назад
Such a good teacher, I didn't see you in the iT pro TV 🙄 you're the only teacher I want,
@28469
@28469 2 года назад
Bruh can you do a video on subnetting? Got my first job out of uni as a IT consultant and I would like an easy video around subnetting as you are the number 1 IT youtuber out there
Далее
Python Logical Operators (the fun stuff!!)
18:00
Просмотров 234 тыс.
what is a List in Python?
13:14
Просмотров 200 тыс.
How I would learn to code (if I could start over)
10:52
i created malware with Python (it's SCARY easy!!)
25:18
Solve This Coding Problem and Win $200
8:06
Просмотров 2,4 млн
5 Useful F-String Tricks In Python
10:02
Просмотров 250 тыс.
Run your own AI (but private)
22:13
Просмотров 1,1 млн
i HACKED my wife’s web browser (it’s SCARY easy!!)
14:36
Power up all cell phones.
0:17
Просмотров 50 млн
Мой странный компьютер 2024
18:33
Избранное печатает...
0:11
Просмотров 46 тыс.