Python Programming Tutorial - 7 - if elif else

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Starts talking about throwing away cardboard, huh this must be some kind of analogy.  Minute later- this isnt an analogy im just trying to get rid of my cardboard...

projectodemayhem
Автор

This really must be the best Python tutorial in the freaking universe.

arvutihull
Автор

put the cardboard into a bag, put that bag into another bag, tape it up with duck tape, then use your amazing python skills to make a program that will disable your garbage man's truck, and then shove it in there.

girormk
Автор

You need to clarify that `is` is not a replacement for "==" operator. `is` is not 'equal to'. `is` checks whether two operands refer to the same object, it does not check for value equality.
In cases where you are using immutable values, both usages translate to the same thing because of reference counting scheme employed by python. But, for mutable objects, you can see the difference.
Example:
L = [1, 2], M = [1, 2]
L is M --> False
L == M --> True
So, use appropriately based on your need.

SudiptaKarmakar
Автор

put it in a bath and make it wet, then it forms one "blub" of paper, let it dry out and put it in your bag
btw tutorials are awesome

hendrikvanhove
Автор

"What up, Lucedawg?" I laughed so hard on this. Man, you make THE BEST tutorials! 

danielgospodinow
Автор

"What up, lucedawg?"


I love this series so much.

Saztog
Автор

Idk why but when he put "no beer for you" after print I started cracking up. idk why just a funny way to put it lol. I love this guy

YourMom-ypev
Автор

that intro is probably the funniest thing I've heard today thanks for that :D

Sonn
Автор

I personally rated you the best computer programmer of all time. Since 2009 you have been great. I have learnt much from you in my entire life. Thank you sir for all the good work!

emekaaugustine
Автор

Im actually looking forward to finding out what happens with the carboard hope its comes up in the next few episodes

joshuahylton
Автор

It's simple, if you put the carboard in the trash and they leave the cardboard, then put the trash in the carboard and they'll leave the trash instead, then you just need to put the trash in the trash, job done.

paulsha
Автор

I normally don't comment on your videos but your intro was hilarious. Mr. Trashman has it out for you. Since he's going through your trash you should take pictures of him taking out your trash in your trash so when he goes through your trash again he sees the pictures of him or something along those lines.

Mattached
Автор

The current version of Python gives a syntax warning for the elif statements. While the code still works, it freaks out at every line since "is" is with a literal. It proceeds to ask if you meant the operator, "==".

stefanm.
Автор

Hilarious and informative. Now every time I see card board I'll automatically remember else if statements. I think (correct me if I'm wrong) this method of teaching (learning) is called hooking. Idk I read it in a book on cognitive science. Don't know if that was your intent but keep it up. Your videos are memorable this way.

jakeeleazer
Автор

Don't ever delete your videos. Man, you're just fantabulous!

AnkitRajAR
Автор

Way too late for my answer but I just saw this video for the first time today...great videos by the way. One could solve that problem with patience. Throw away one very small piece of cardboard a day...say no more than a square inche a day, and bla bla bla...you can assume rest. Thanks for the videos.

joeGallo
Автор

Cardboard has everything to do with Python! Think about it.

alancampbell
Автор

Hi, and thanks for those nice tutorials!, well just to clarify something, i think it wasn't clear in the video, and that is the difference between using elif statements instead of bunch of if statements under each other, is that the elif is only evaluated when the previous condition is false, otherwise it's ignored, but if we decided to use multiple if statements under each other, even if one of them is true, python will continue to check the next one. Another thing, in this video we see the comparison is made using "is" which is true of course but we can use also the double equal sign "==", in fact, and in most cases, when you check other people's code you'll find that this is what most people prefer but it's just a personal preference of course!

MiledRizk
Автор

Hey, Canadian here. Last month I did a Western US road trip and went to 8 different states. I did not see ONE recycle bin. True story

djleisheng