Python 2.7 Tutorial Pt 6

preview_player
Показать описание
In this video I'll explain how to use functions in Python 2.5 through 2.7. I'm going to cover how to: Create Functions, Pass Values to Functions, Create Default Values,
Except Unlimited Arguments, Except Unlimited Key Value Pairs and Recursion
Рекомендации по теме
Комментарии
Автор

I'm a French student in maths and physics, we also have to study python. And I can tell you that I learn more in 10 min here than in many hours in my class !
Your education system is so much better than our !

theonguyen
Автор

I'm glad I was able to help. Yes, it can be a bit confusing

derekbanas
Автор

Thank you :) I'm glad you liked them. Which line of code are you referring to. I want to make sure I explain your answer right

derekbanas
Автор

Thank you :) I make all of the code available and I'm always here to answer any questions you have. Send me some questions and I'll gladly explain further. I answer every comment. It might take me a few hours but I always get to them

derekbanas
Автор

@Colstonewall He is definitely the king of programming tutorials. I doubt he has any idea I even exist. I'm glad I was able to fill in the gaps to help you out :)

derekbanas
Автор

I like the way you explained recursion, crystal clear!!!

davidsong
Автор

I can help but say that this tutorial series is a life saver. I am in the process of creating a web crawler in Python for my master thesis but I am a PHP scripter. Currently reading "Programming Python" by Mark Lutz for help. But a visual tutorial is much more helpful. Thank you. Great Video. If I do finish my thesis, I do hope I could eventually add you as work cited reference if that's ok with you. Great Vid! Two Thumbs Up!!

dawgpund
Автор

@ribsmcgee1 I cover sorting in part 10 of this tutorial. That tutorial should teach you everything you need

derekbanas
Автор

@MultiComputerScience Your welcome. If there is any specific example you'd like me to cover just ask :)

derekbanas
Автор

The for loop knows how many items to increment through. Does that make sense?

derekbanas
Автор

@dawgp0und Very glad to help you. I'm going to be getting into website scraping very soon with a lot on scraping rss feeds. You can do anything with my material and I'd be honored if you sited my work in anyway :)

derekbanas
Автор

@supercaleb08 Soon I'll teach about design patterns. They try to relate how to think like an experienced programmer. Aside from that you just have to practice making stuff. Watch other people write an explain their code. The internet is really great for that. When I was learning I just had a book and a lot of practice. I hope that helps

derekbanas
Автор

if __name__ == '__main__': main() is checking if the executing program is yours, or if your program is being used as a module. If it is the executing program then the main function is called in your app. If your code is being imported into another program then any main function that exists is ignored. Does that make sense?

derekbanas
Автор

That is where your program begins executing. main is the first function called

derekbanas
Автор

@QikTips I thank you for the compliment, but thenewboston doesn't even know I exist :) He is way more popular than I. He does everything the right way to generate traffic, but I've never cared about generating traffic. I just like to have fun

derekbanas
Автор

Very nice vids Derek. I was beginning to think TheNewBoston was the only channel with good tutorials. I stand corrected! I will be watching all of your tutorial on Python. . .My only concern about your videos is, I have a little difficulty seeing the screen. Other than that, they are perfect imo. Thank you for making them!!!

Colstonewall
Автор

Use yourString.split(", ") Here is more info docs . python . org/2/library/string . html#string . split

derekbanas
Автор

THANKS again --- great tutorail in one of the comments below you mentioned you will be teaching design patterns... are those in your playlist

shalinisujith
Автор

First off, great series on python, well done and love the quality, 720HD.
Now for my question I had thought, that once the value was returned, it became a global or is that only if it is assigned to a variable?
Thanks for all of your work on our behalf.

bobalong
Автор

Great one. Why did the print for the dict tarts from index 2 when it loop through

blaycoder