Master Functions in Python - Python Crash Course - Episode 8

preview_player
Показать описание
Learn how to work with functions and modules in Python.

⏱ Timestamps
0:00 - Introduction
0:29 - Functions overview
02:59 - Exercise 1: Functions
04:36 - Passing arguments
11:49 - Exercise 2: Passing arguments
16:00 - Return values
23:10 - Exercise 3: Return values)
28:50 - Passing a list
35:09 - Exercise 4: Passing a list
38:20 - Passing arbitrary number of arguments
44:42 - Exercise 5: Passing an arbitrary number of arguments
49:12 - Storing functions in modules
56:18 - Exercise 6: Storing functions in modules
01:01:03 - Summary
Рекомендации по теме
Комментарии
Автор

guys get the book read it do the exercises you know the part that says try it urself yea that part do it when you're finished come here and see how he solves it you might not always be able to complete the exercise without peeking here first but try honestly try anyways good luck to you all my fellow programmers

echrprx
Автор

Thank God I found your channel. I've been reading this book for some days now and I have some questions. Your videos put me through.

God bless you🙏❤😍

michael
Автор

Thanks very much Sir, studying the book(pdf) alone was kind of tasking. Thanks for these videos once again.

chinonsomartins
Автор

I am pretty impressed. In the page 139 of Python Crash Course the exercice of the minute 18:30 to make an argument optional is solved with an if/else. You solved it in a more economical way. Really cool!!

taulguedi
Автор

Hi Robin,
Great video as always!

I didn't quite understand why are we using "return".
For example in exercise 8-7 could we just use:

def make_album (artist, title, songs=None):
"""Return album dictionary."""
album = {'artist': artist, 'title': title, 'songs':songs}
print(album)


make_album("Michael Jackson", "Thriller")
make_album("The Beatles", "Let it Be", 12)

It gives us the same results.
Or maybe there is more of use of "return" later on.
Hope my question makes sense.

aleksejkostjukov
Автор

Started learning python since sept 21 and came acrooss your videos which are perfect in learning step by step. The problem that am getting is the video is dark and when you code the letters are very small and sometimes cant differenciet a comma and a full stop or parentes bracket and curley brackets. plz can u adjust those fonts . Am right now at chapter 8 (functions) and bought a magnifying card and its not helping . Plz help Thanks

aliyassin
Автор

Just want i needed.. i got this book like a year ago but i was to busy to go over the book by myself.. i am teaching myself python by the way..

Yordani
Автор

Nice work thanks for the video! What is coming up next?

wykonos
Автор

How do you import modules in VS code? I can't seem to get them in the right directory

nicktorres
Автор

user_info = build_profile('robin', 'wagner', location='berlin', language='python', mood='great') 😎😎

taulguedi