Lesson 10 - Python Programming (Automate the Boring Stuff with Python)

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

Had to repeat this video the second time to totally understand it. You are such a great teacher!. Thank you for sharing your knowledge. Been spending time with this series, super helpful.

joshkristine
Автор

"Global Eggs" - The best thing I have heard all day

jordanray
Автор

I'm a senior accounting major and teaching myself programing over winter break since we use computers for everything now a days. So far have found your courses really helpful and will definitely be buying the full course. Thanks!

Humito
Автор

This series is awesome. Plan on ordering the book. Thank you for making this material so accessible and practical.

matthewhollander
Автор

your videos and website is awesome. Will definitely buy the book.

gerhardhuman
Автор

actually I've tried the " global eggs " but it still printed out the local variable instead. can someone tell me why?

=> this is the code

egg = 22

def printEggs():
global egg
egg = 66
print(egg)

printEggs()

Output : 66

charon
Автор

Instructions unclear resulted in British breakfast.

robertsmith
Автор

if it wouln't take a lot of work, is to have a page with all the recaps listed, that way i could print them all out and use as reference sheet

royalmaster
Автор

Thank you very much, I understand more about global & local variables.

nhacakoi
Автор

the best explanation of global vs local

prashant
Автор

i like the way you explain stuff
very simple

manhaabdellah
Автор

Very good video. Very similar to JavaScript in this sense. Instead in JavaScript it isn't called global variables local variables. It is referred to as the global scope or local scope. But it is the same concept when working with functions. Basically, Python 'def' is a function, same thing.

DevlogBill
Автор

Thanks for the video! I feel much more confident in my understanding of the different types of scopes after watching this!

pivoteer
Автор

Many thanks, your courses have given me the scope of thinking very precise way

zaslinks
Автор

at 9:40 when you mark eggs as a global variable it sounds like you are saying this is telling python to only recognize the global eggs (of 42 in this case). When I ran it I was surprised that it printed Hello and then Hello again. It might be helpful to run this step through the pythontutor also. I guess adding the global statement at the top of the function is really telling python to treat the eggs assignment within the function as a global rather than local variable. Thanks for the courses, feel like I'm starting to understand a little.

percys
Автор

I bought the book, great addition to my small Python library

hexequi
Автор

These videos are awesome, you are very good at explaining things.

meltedcheese
Автор

All the rules explained in this video applies to immutable arguments only right? When mutable arguments are used, some statements are not completely true?

Han-veuh
Автор

you really are a very good teacher :) i like the way you teach.

sedricnicoleurbano
Автор

All these functions are making me hungry

Abstrafe