Not only was this a thorough explanation of the concept but the content was also engaging, love The Office. Thanks!
@vish9492 жыл бұрын
This content u provide is insane, you have no idea how many people you've helped with this. Thanks man!!
@LukeBarousse2 жыл бұрын
Aw thank you so much for this!
@0o_KASHIII_o02 жыл бұрын
I only recently started learning python and loop was one of many things that I didn't quite understand. This video IS the one the gave me "AHA" moment and now it all makes sense. You have a way to explain difficult things in a simple way. Keep up the good work!
@LukeBarousse2 жыл бұрын
Heck yeah! Glad this video helped!
@HelloIamLauraa Жыл бұрын
hahah yee I also had this "AHAAAA" moment a couple of time by Luke
@ilyan51893 жыл бұрын
Ever since I came across your channel, I've become extremely interested in DATA science. Really great content. Keep it up!. Hoping that your channel grows into something big!!
@LukeBarousse3 жыл бұрын
I hope so too!! Thanks for the sub!
@ДмитрийИванов-ш5т6х3 жыл бұрын
Love the way you implement Python to a well-known sitcom, makes learning process much more entertaining. I shall take "Parks and Recreation" script and do some similar stuff in order to sustain new aquired skills. Thank you!
@LukeBarousse3 жыл бұрын
Nice! Make sure you share this!!
@aissamboudra79952 жыл бұрын
Many thanks luke :), so great contain, no place to next video...
@gamespauls77652 жыл бұрын
As always top-notch quality from Master Luke DataWalker :) Quick question please! At 22:00, how exactly does the "previous_item" variable work properly? When the condition initializes the item that matches the condition is (let's say) at position X in the list. How on science's green earth, we do retrieve the X - 1 position? (meaning with pull the sentence before our condition statement?) I presume when the [for statement] takes takes effect the [item] is in X - 1 position (i.e. previous sentence), and it is only when the nested [if statement] takes effect that the [item] receives the position required by our condition? Thank you!
@LukeBarousse2 жыл бұрын
Thanks! And yes your last statment is correct. It doesn't match the "That's what she said" until the sentence after... so I have it stored in previous_item and can recall it with this for loop
@gamespauls77652 жыл бұрын
@@LukeBarousse Thank you :)
@pedrosoto22212 жыл бұрын
Hey, Luke! Great video. What would happen if the first item to enter the loop is actually “That’s what she said” and condition is True on the first iteration? Then it would return the item twice, correct? Edit: Actually I think it’d throw an error since previous_item has no value. Please let me know if I’m wrong, I’m just going through it in my head and haven’t used Python in a long time!
@LukeBarousse2 жыл бұрын
@@pedrosoto2221 I think it would give the sentence after "That's what she said" which wouldn't be the punchline/joke
@Dmitry-xj1hc2 жыл бұрын
Thank you, man, you're great!
@fatimak64403 жыл бұрын
this helps! very nicely explained. thank you!
@LukeBarousse3 жыл бұрын
Hi Aneeta thank you for the kind words! Glad you got use out of this Video!
@adfbi3 жыл бұрын
Hello Luke, when I execute the commands to obtain the list of all lines (in your tutorial you run those command at minute 19:35), unfortunately the first line that comes out is from episode 3 ("Good luck. [closes door and locks it]"). :( :( I tried and tried to understand why, but without success. Where does this issue come from? Thanks in advance...
@LukeBarousse3 жыл бұрын
I'm not to sure. Have you pulled the code off of my github repository?
@adfbi3 жыл бұрын
@@LukeBarousse Yes, I did it exactly like you showed us in your tutorial. I think that at this point I will ask the question in "Stack Overflow" . But thank you so much for replying! I am at tutorial n.4 now, so happy and thankful about your playlist and I recommended you to a friend of mine!
@adfbi3 жыл бұрын
@@LukeBarousse Hi Luke, it may be of interest for you to know that if I run the code in the jupyter notebook, all the lines are shown! Hence it seems to be a problem related to Visual Studio Code. I will try to figure it out. Singular problem anyway!
@LukeBarousse3 жыл бұрын
@@adfbi Okay thank you for letting me know this. When I get some time I'll look into this as well, thank you for also looking into it!
@LukeBarousse3 жыл бұрын
@@adfbi Awesome, I hope someone was able to help you there at stack overflow. Thanks also for recommending me to a friend, highly appreciate it!!
@EminentJade3 жыл бұрын
neatly explained, thank u so much
@LukeBarousse3 жыл бұрын
Awe thanks so much for this!
@juanpaolo21yt2 жыл бұрын
HI Luke, I have a question. "for row in csvreader": row is a variable right? Thank you.
@LukeBarousse2 жыл бұрын
Correct! row is considered a variable in this case.
@negisaab743473 жыл бұрын
Good content, are you planning for pandas and numpy videos?
@LukeBarousse3 жыл бұрын
If there is enough interest I will!
@pindbramptonOntario3 жыл бұрын
I didn't get it when you assigned the previous_item to the item. Can you share how you defined previous_item
@LukeBarousse3 жыл бұрын
I'd checkout my jupyter notebook (link in description) as it will show how I did this better
@fatimak64403 жыл бұрын
Wondering what interface you're using? It says Jupyter server but it doesnt 'look' like JupyterNotebook or JupyterLab.
@LukeBarousse3 жыл бұрын
HI ANeeta, great question. I'm using VS code, free code editor from Microsoft. Here is a video on how to install it: kzbin.info/www/bejne/fqekm6GmdpugoqM
@alexis.jacobo.drums142 жыл бұрын
Hey Luke! First of all, thank you for sharing your knowledge. I wanted to ask you, in the last episode of this video you create the variable 'previous_item' and it's = item, I don't understand how it returns the previous line, aren't you asking to 'previous_item' to be equal to item?
@LukeBarousse2 жыл бұрын
Do you have a time stamp for the last episode? I couldn't find what you were referencing
@alexis.jacobo.drums142 жыл бұрын
@@LukeBarousse Hey Luke, thanks for replying. It's at 22:16, I see 'Previous item' is defined like Item, I understand that you're defining the same value that Item has, then if the condition is not implied in Item, it returns 'Previous Item' and shows an underline
@joeyditizii Жыл бұрын
Where did the "previous_item" come from. You didn't tell Python that "previous_item" was the line before the condition, so how did it know that "previous_item" was... the previous item.
@JoseAguilar-yz4bq2 жыл бұрын
19:33 That's what she said
@LukeBarousse2 жыл бұрын
🤣
@learnerlearner92003 жыл бұрын
great
@LukeBarousse3 жыл бұрын
🙌🏼
@paulbuono5088 Жыл бұрын
I made a bot that tells me the age of the person in my family when I insert a name...it's the most useless thing ever yet I've never been more proud!