All language subtitles for 12. Functions Basics of function

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French Download
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

I am one and welcome in this news with you in this video, we're going to talk about functions and more

precisely the basic function.

So a function is one of the most important thing in programmation and in Python function is like a variable.

You need to master it.

A function is very helpful when you have to do the same, could you have to apply a code?

But to me, multiple times, for example, if you want to compute the mean of a time series, but for.

1000 times there is you are not going to do a cookie past 1000.

Time to do exactly the same could, but with a little

modification.

So.

To fix this issue, you are going to use a function.

Let me show you a little example.

So to define a function you need to use to define oprah.com, then you put a space and you put the name

of your function, so may function and you open parenthesis, even if your function as no needed parameters.

And then you put the parameters of the input of the function, for example, in or example of compute,

the mean for many times there is the input will be the time series so param one person to person through.

Then you put double pane and you go to the name to the line and you need to have an indentation.

Then you can create for you function a dock, string a and doctrine is very important.

Why?

Because if you work with a very specific project and you create some function, you need to do a documentation

of your new function for you.

If you read the Quran again, but one year later, for example, and for other people which want to

see your code, for example.

So it's very important to tell what the function do, because if you have, for example, one hundred

function, it would be very impossible to understand all of the function without a documentation.

And then here we are good.

I'm not going to put a documentation because we create a very specific and easy function.

So this function?

Just

do the some of the three input.

And to use that function, it is very easy, so you just need to put the name of the function, the

parenthesis and the input that you want to give in the function.

And then in return, we have six because one two three is equal to six.

But sometimes it's very helpful to set default setting in our function.

So, for example, if I teach.

Dysfunction and for any reason, sometime I have just this parameter, and

if I want, I can set default parameter for the bond to end the Bond three.

It means that if.

I use this function, I can use it.

Putting the venue that I want for Bahrain to open three, but if I remove the venue of Pan £210 three

automatically, Biton put three for the bottom two and six for the prime three.

So if I run this, could we have one plus three?

So four plus six.

So 10.

So if I change this, we will have another result.

So it is important we need to understand the power of the function.

And for this video, I want to invite you to see it again and go under difficult for him to ask some

question about function.

If you are not comfortable with this notion.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.