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
@aidanharan36412 жыл бұрын
Hello Chuck!
@BHighTech2 жыл бұрын
Hii
@as05802 жыл бұрын
Hululu
@ganjiguuramatsaihkan86272 жыл бұрын
Guess I'm second one xd
@aidanharan36412 жыл бұрын
Chuck can you do more cyber security videos in the future
@ablesentry70702 жыл бұрын
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.
@frosty78452 жыл бұрын
Same
@rmp56402 жыл бұрын
Where di you guys learning?
@animepfpkid52162 жыл бұрын
@ISCARI0T 🤡
@nissohy2 жыл бұрын
Me too. I threw my tv out of the window since I inside chuck KZbin Chanel AND NO if or else for me since then (-:
@shortthings81602 жыл бұрын
@ISCARI0T LMFAO
@Aqua0212 жыл бұрын
Hey Chuck please never stop the series i started learning it because of you man
@safwanaddou81173 ай бұрын
Same😅 he is the best right
@mr_hashbrown2 жыл бұрын
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!
@NetworkChuck2 жыл бұрын
Thank you 😊
@allfun24682 жыл бұрын
Your are not wrong about that
@mr_hashbrown2 жыл бұрын
@@NetworkChuck, you're welcome!
@alexpenna Жыл бұрын
That's the best user name I have seen this month
@mr_hashbrown Жыл бұрын
@@alexpenna 😂😂
@tomscott88202 жыл бұрын
I used to be a fan but after this masterpiece i'm a whole air conditioner
@caam00002 жыл бұрын
No
@tomscott88202 жыл бұрын
nice video
@tomscott88202 жыл бұрын
@@caam0000 how did you find out
@caam00002 жыл бұрын
@@tomscott8820 😂
@vicki-annthornton8330 Жыл бұрын
🤣🤣🤣🤣🤣 that's awesome
@MansoorBarri2 жыл бұрын
Challenged solved: elif order == "Latte": whip = input("Do you want extra whip cream?") if whip == "yes": price = 11 else: price = 9
@NetworkChuck2 жыл бұрын
Excellent job!
@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 Жыл бұрын
@@vicki-annthornton8330 cheers
@aliyahmillan38822 жыл бұрын
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 Жыл бұрын
good teachers are everything
@HasGoesWild2 жыл бұрын
To the people this was recommended to 10 years in the future NetworkChuck was the most consistent youtuber back in 2022
@Zoro69016 Жыл бұрын
It is now two days before 2024
@Zoro69016 Жыл бұрын
His teaching method is great
@simonhermon39585 ай бұрын
nah bro definitely hacks Da Hood
@Arabian_knight_1014 ай бұрын
2024 I'm still here
@josue61312 жыл бұрын
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!
@priyanshdahiya30432 жыл бұрын
New episode on python made super simple.This is very "unique" man. Love how you make things so interesting.
@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 Жыл бұрын
same thing here man, 41. My daughter got me into it, but Chuck is making it easy.
@vindicatedafi2 жыл бұрын
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!
@Saffron7772 жыл бұрын
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!!!!
@evgeniyalafev97812 жыл бұрын
why are you making him feel guilty? lol j/k
@AnomalousURL Жыл бұрын
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 Жыл бұрын
I watched all these video's today i am hooked
@Krullfath Жыл бұрын
@@AnomalousURL 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.
@depends36522 жыл бұрын
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.
@nathanvargas7138 ай бұрын
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.
@Sensei__Nate Жыл бұрын
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!
@brandonpike70462 жыл бұрын
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!!!
@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.
@Jake-dc3bv2 жыл бұрын
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!
@20002000l2 жыл бұрын
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
@surecode67632 жыл бұрын
chunk = input(" continuing teaching? ") if chunk = "yes": print("thanks, keep teaching") exit() else: print("you must teach, you can't leave us😅")
@foxdk2 жыл бұрын
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.
@MindFuel72 жыл бұрын
Thanks God bro you're back with Python Episode kindly complete it
@akshatkumar3692 жыл бұрын
I just love coming to this channel and learning some thing new each day! Thanks, Chuck!
@The_C0LLECT0R-c9y2 жыл бұрын
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.
@dystopianpalace97782 жыл бұрын
love your python course ♥
@reastle13072 жыл бұрын
you are my best teacher! Honestly the way u teach is nothing like teacher i know in real life ❤💻💻
@NetworkChuck2 жыл бұрын
Thank you 😊
@mode72062 жыл бұрын
Heeey teacher am from Ethiopia i just wnna say that i like u and u and u r best teacher ...legend. davidB too I hope will see u and learn more And i know u like Ethiopian natural coffee we like u too .... great teacher
@mihrangamerz22362 жыл бұрын
Don't ever quit from KZbin you are awesome
@shortsman3802 жыл бұрын
Thank you Chuck. Because of you, I have started learning python and have just engaged in virtualization
@Fuzzyfull2 жыл бұрын
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.
@kindlehaha2 жыл бұрын
@Islanddreamer4302 жыл бұрын
It took me hours to figure this out 🤦🏽♀️
@Islanddreamer4302 жыл бұрын
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.
@premiumleader89482 жыл бұрын
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.
@slythe_tech2 күн бұрын
i did if name == "sly": print("Are u evil") if input() == "yes": exit() else: and it also worked
@saurbh222 жыл бұрын
The way you explain is really I love it, you go in core of any topic thats amazing...
@NetworkChuck2 жыл бұрын
Thank you!
@Motivation2Invest2 жыл бұрын
Exceptional this is better than any university course, would love more soon! Happy to pay for large course with you teaching,
@NoahLA2 жыл бұрын
I’m so happy he’s continuing the series!
@geef0813 Жыл бұрын
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.
@Renotrigger2 жыл бұрын
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.
@mitchellkeller65622 жыл бұрын
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
@viccc_17672 жыл бұрын
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.
@Sluggaboy27 Жыл бұрын
Got it! I set a variable for whipped = input("Do you want whipped cream? ). Then I used an if statement for Yes and elif for no! You're a great teacher! Thanks.
@KBeast2710 ай бұрын
This whole series so far has been amazing! You're a great teacher, keep up the great work! I'm mainly commenting for the KZbin Al Gore rhythm because you deserve more views. Lol
@monicamoses4207 ай бұрын
It's like the tutorial is one on one and not on youtube! Chuck, you make it so easy to understand! Thanks!
@Max-bk7us2 жыл бұрын
I love your enthusiasm towards python, honestly infective
@neodevils2 жыл бұрын
order = input("Coffee, Tea, Espresso, Latte ") if order == "Coffee": price = 2 elif order == "Tea": price = 1.5 elif order == "Esprresso": price = 3 elif order == "Latte": price = 9 whipped_cream = input("Whipped cream? ") if whipped_cream == "Yes": price += 2 else: print("Please pick a valid order!") price = 0 print("price:", price)
@ZA_Atomic8 ай бұрын
Your the only person who shows enthusiasm in teaching great teacher
@jayanthkadlur9910 ай бұрын
Na na na , You have the best course (That is python) ever. You are one of my favorite youtbers I have ever watched!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@MasoodOfficial2 жыл бұрын
Amazing!!!! The best tutorials ever, can't wait for more.
@NetworkChuck2 жыл бұрын
Thank you!
@Zayn2.2 жыл бұрын
love your python course 👍
@Shabbyy.9 ай бұрын
thanks mr chuck: if i can try this. if order == "tea" : cream = input("Do you went whiphed cream? ") if cream == "yes" : price = 11 elif cream == "no" : price = 5
@sedgeseven37672 жыл бұрын
Imagine somebody from say 50 years ago in the past watches this video, NetworkChuck speaks in tongues he will conclude.
@PappaBen2 жыл бұрын
if name == "NetworkChuck": evil_status = input("Are you evil? ") if evil_status == "Yes": print("Retaliating for all the Bens out there, you are not welcome here " + name + ", but thank you for the lessons!") exit() else: print("I knew you were a good guy, NetworkChuck. Thank you for coming in and being one of the good guys! ")
@karlvohma2 жыл бұрын
found your channel yesterday and ive an addicition
@petergliozzo5050 Жыл бұрын
This is the best python teaching I've ever had. And i am studying it in university right now
@Mojzu2 жыл бұрын
almost 2m subs? omg i remeber when i last time wached yours movies you had under 100k sub, congrats!
@uhlersoth992 жыл бұрын
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.
@antonimisenglish59602 жыл бұрын
Finaly hes back when i need em!
@rodriguesjoao882 жыл бұрын
I love your excitment explaining such a simple if, elseif, else statement. Great job! ;)
@xeliloruclu66072 жыл бұрын
You are explaining better than my teacher . Its perfect man
@earthbender7312 жыл бұрын
I learned all of parts 1,2,3,4 and 5 in one day,hope you will post more of these,they are very entertaining and so much usefull.Now I can do basics in python and I learned that all in one day,thanks to you
@AliAhmad-su1hw2 жыл бұрын
Hello My one has a problem i done everything in video it says price is not defined
@earthbender7312 жыл бұрын
@@AliAhmad-su1hw u need to define the prize.That means write a line in the python code that says : price = number.U can change the number to a price of your choice
@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.
@beast60922 жыл бұрын
You've got to love his enthusiasm!
@firedragon62922 жыл бұрын
lol i paused it and did it all in couple min ( the different prices i mean) so many errors forgot in so many places took me like 20 mins but was worth it to see it work thx man ur the only one who i found who actually makes coding fun and u even understand a humans brain like bro u actually know whats fun and wats cringe thx again keep up the good work
@284692 жыл бұрын
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
@abhishekpatil30862 жыл бұрын
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 !!
@SunDevilThor2 жыл бұрын
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 KZbin live music video a few times.
@andreea458902 жыл бұрын
I was so happy to open KZbin and see your new video, just like Xmas gifts under the tree
@ItsAnAppliePieАй бұрын
helped me soo much i was such a python noob . in only 1 day i have been able to do coffee pythons this guy is fun and helpful
@kennethmantis72702 жыл бұрын
Such a good teacher, I didn't see you in the iT pro TV 🙄 you're the only teacher I want,
@underthewatar12 жыл бұрын
Thanks for giving us great videos,I honestly mostly like how energetic you are in videos thanks so much!!!
@jadetrue2 жыл бұрын
💯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!) 🙏
@unpredictableishere66922 жыл бұрын
I LOVE THE GRIND MAN KEEP IT UP
@Axel-jv8wb2 жыл бұрын
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
@deepfrieddevelopment3123 Жыл бұрын
I took a much more rudimentary approach to structuring this one and figured I might share in case someone finds it helpful! Basically, the idea I had is that checking the name and printing the welcome message are 2 fundamentally unique tasks. So it starts like: name = input("What is your name? ") if name == "Ben": evil = input("Are you evil? [y/n] ") else: evil = "n" This initial portion takes the name, and if it's ben, sets evil to the answer of the question. If they're not ben, it just sets evil to no. Then it continues: if evil == n: print("Hello " + name + ", thank you so much for coming in today!") else: print("You're not welcome here! Get out!!") exit() This part then checks the evil state from the first process, if they're not evil it welcomes them and will continue through the script. However, if they admit to being evil, they get kicked out. Obviously the whole point of this video was to show that nesting if statements is a thing, and it's helpful. I thought sharing this simplified example might be nice though as doing things in a process like this is nice to avoid situations like needing 2 different welcome messages (unless you want a special message for non-evil Bens, in which case this method is worse). Just one more tool in the belt.
@siddeshsiddu432 Жыл бұрын
Yess .broo its right, and also continue, cofees and this price .i am tell right or wrong .plzz answer
@telisijohn20542 жыл бұрын
This dude is all jacked with all the coffee he's been drinking but doing GREAT public service.
@Rise20342 жыл бұрын
This is the best python course ever! :) so well explained
@yolow54972 жыл бұрын
wish these python episodes came faster(and please go deeper with python than most YT-tutorials). i really enjoy your python tutorials
@thaliaortiz55632 жыл бұрын
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!!
@blaiseDee2 жыл бұрын
What kind of software and hardware do you use to take notes on the screen? (like 3:05) Is it live or added in post-production?
@midimusicforever2 жыл бұрын
The perfect theme song: Placeboing - If
@Pianodaddyy2 жыл бұрын
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 😂
@lilme37922 жыл бұрын
more python tutorial plkease, you're the perfect teacher for teaching python!
@pizzabossxd2 жыл бұрын
Just by the title I was able to tell it's a video in Chuck's Python tutorial serie... lol
@MEMEME-rm9wp4 ай бұрын
Solved! extra_cream = input("Would you like extra whipped cream?") if order == "Latte": print(extra_cream) if extra_cream == "Yes": print("Okay, that will be $11") elif extra_cream == "No": print("Okay, that will be $9") **Note I put right under order
@simplysimple73912 жыл бұрын
The meme content from the previous video was 10/10, love these videos bro
@caseygarcia9279 Жыл бұрын
elif order== "Coffee": frappe = input("do you want frosting?? ") if frappe == "Yes": price = 10 if frappe == "No": price = 4
@wardog1692 жыл бұрын
Chuck Your code isn't correct after it asks for how many of a coffee the person wants and you enter 9 but its only showing the price for cup not for all 9 cups.
@IvanAAnnuh2 жыл бұрын
You do this with so much passion and enthusiasm, it greatly motivates me!
@kasuma62502 жыл бұрын
Thanks bro you're back with Python Episode kindly complete it
@link_0nroy2 жыл бұрын
Thank you for making this python so quick!!!
@onenation8282 жыл бұрын
Ever since you took the pug out of the intro it just hasn’t been the same man. My vote is to bring him back. Let’s Go💪🏼 No pug no channel 😂
@tasliner20032 жыл бұрын
I will always love python with Chuck
@mahmoodibrahem51542 жыл бұрын
You are the best youtuber , But i want please in video "translate to Arabic " Your friend from Egypt 😊
@guyonadino2 жыл бұрын
You deserve more subscribers bro... :D
@PsychicSaw11 ай бұрын
Oh my science, you're amazing! Just starting to learn Python and you make it sooo easy and so clear and so fun... And yes, I'm always drinking coffee with you! OK diving into ep 6! Much love from Israel 🖤
@samoylov19732 жыл бұрын
@NetworkChuck thanks for the series, there's one small mistake though - if you order a Frappuccino print (price) == $13 , if you order 9 Frappuccinos, like in the video, - print (price * 9) == $117 ))) Or you'll go broke with that famous coffee shop.
@patnaphotocopier53532 жыл бұрын
thank network Chuck your geart video and i learning
@isshwor2 жыл бұрын
Man you are an absolute god and also I really like your outro/ intro music, can you link me to that song or whatever?
@adriansony97622 жыл бұрын
Your python content is awesome man
@NetworkChuck2 жыл бұрын
Thanks!
@sergetheijspartner20052 жыл бұрын
Shouldn't you multiply the price with the nr of coffees? Or is this like one of those Murican things where you add the tax at the end?
@anatolisen6 ай бұрын
For 7:18 I wrote: print("Welcome to Antons Brain!! Are you ready to learn! ") name = input("What is your name? ") if name == "Ben": bad_status = input("Hey, " + name + " are you a bad guy? ") if bad_status == "yes": print("Sorry, " + name + ", you're not welcome here.") exit() if bad_status == "Yes": print("Sorry, " + name + ", you're not welcome here.") exit() if bad_status == "YES": print("Sorry, " + name + ", you're not welcome here.") exit() if bad_status == "no": print ("Oh! ok " + name + ", your welcome here. Enjoy your stay! ") exit() if bad_status == "No": print ("Oh! ok " + name + ", your welcome here. Enjoy your stay! ") exit() if bad_status == "NO": print ("Oh! ok " + name + ", your welcome here. Enjoy your stay! ") exit()