Please Master These 10 Python Functions…

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

In this video, I will dive into 10 Python Functions that you NEED to master. Some of them may seem simple, but they have a lot of additional parameters that you need to understand and mastering all of the functions can save you a ton of time when writing any type of code in Python.

⏳ Timestamps ⏳
00:00 | Overview
00:16 | Function #1 - print
02:23 | Function #2 - help
04:28 | Function #3 - range
06:38 | Function #4 - map
09:12 | Function #5 - filter
10:57 | Function #6 - sum
11:41 | Function #7 - sorted
13:31 | Function #8 - enumerate
15:10 | Function #9 - zip
18:00 | Function #10 - open

Hashtags
#techwithtim #python #pythonprogramming #coding #codingtips
Рекомендации по теме
Комментарии
Автор

For the first time ever i understood how lambda functions work. Thankyou so much Tim!!

MansiBansalc
Автор

Print also takes a file argument to write to a file.

johnbennett
Автор

Any chance you could make a video on how to properly study and retain programming? I find myself repeat myself with the same stuff because I can't memorize what I'm learning. It would be amazing to see how you studied and practised programming.

mukmusicdiary
Автор

Nice simple explanations that start you thinking of how you can use these functions. Exactly how you want to feel when learning a language.

ameldancalippo
Автор

These "basic" videos are very nice.
Thanks for that one.

christoph
Автор

I've always been using key argument in sorted function by trial and error. Finally I understood. Thanks Tim great video as usual!

raghunathansundaresan
Автор

Used some of these for a recent class, and this serves as a refresher! Great content.

RemyDelaCruz
Автор

Using enumerate(tasks, 1) makes the code even cleaner. The second parameter is the start value.

johnbennett
Автор

Thanks a lot Tim, it was such a helpful recap for me. Keep up the high quality content.

softwareengineer
Автор

Thanks! I never understood lambda functions. I overcomplicated it.

legojenn
Автор

Zip takes a strict argument when it is important that the lists are the same length. Without it zip can hide bugs in your list generation.

johnbennett
Автор

Hi Tim ! #10 @18:03. I didn't know that I'm able to both read to a file and write from a file ... You'll never stop learning ... 😉

dragonfly-
Автор

For the sum function, there is a cool thing you can do with the start argument. You can put any type that support the + operator. So for example if you want to flatten a list of list you can pass it with start=[] and it will get the job done

souris_a_boule
Автор

Extremely helpful video! Thanks so much!

jimalix
Автор

I often use lambda functions with filter and map

ralvarezb
Автор

Print also as the ever helpful .format() and f strings

bryce
Автор

Why are all the python tutorials explained lightning fast as if I am already a pro and know what it is talking about?

Superstar-nltl
Автор

What is the advantage of map and filter functions, the same can be achieved with single line list_comprehension aswell. Curious to know what are the added advantages of using these map & filter functions. My approach for the items discussed in the video are :

strings = ["my", "world", "apple", "pear"]
l_comp = [len(i) for i in strings]
print(l_comp)
l_append = [i + "s" for i in strings]
print(l_append)
l_filterd = [i for i in strings if len(i) >4]
print(l_filterd)

avvarutheja
Автор

Men der findes mere hensigtsmæssige og plausible metoder. Men tak for den detaljerede lektion, kolleger

StrandgaardMorten
Автор

Woah that append seems useful for me

Sorry too newbie, just started to learn about 2 days ago

RoyZennet