Afrikaans
Akan
Albanian
Amharic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
Let's talk about arguments versus parameters which is one of our key terms that we use when describing
functions.
Let's see what they mean.
You see right now are say Hello Function is pretty generic.
Very simple right.
We're just while printing.
Hello.
It's kind of useful but not really the power of functions beyond just being able to call this multiple
times because it only lives in one location in memory is this ability for us to make it dynamic for
example in these brackets.
I can give it what we call parameters.
So in here we give it parameters
inside of the bracket.
So for example I can give it name which is a variable that I just made up I can call whatever I want
and I can leave it like that or I can keep giving it parameters as many as I want I can keep adding
a hundred if I wanted to so.
In this case let's just say this is an emerging so these are two variables or parameters that I've created
and this Say Hello Function is able to receive these two parameters.
What does that mean.
It means that we're able to use these variables inside of this function.
For example I can create this as an F string and say hello and add the name.
And then finally add the emoji.
And because I have these parameters I can use them as variables inside of this code block.
Now these parameters allow us to give the function when we call it what we call arguments.
And by the way the confusion between parameters and arguments people usually say one when they mean
the other.
It's a little tricky so hang in there.
Arguments are used as the actual values we provide to a function.
So now and say hello I can give it a name.
In my case let's just say hi to myself and then I can give it an emotion.
And you see how my editor is giving me the hint that I should give it an emoji because while I defined
it here again something that editors help us do.
So let's just give it just a smiley face with the tongue out.
Now these are arguments these are the actual value we provide to the function and the name of the variables
that we use that we receive are called parameters.
So parameters are used when we define the function and arguments are used when we call the function
defined and call and by the way some people also like saying call or invoking the function or invoke
the function.
So if you ever hear those words you know what they mean.
So if I run this I get Hello Andre with that smiley face and this is when functions get really powerful
because we're able to not just make generic functions that always do the same thing but we can create
a functions that do things based on what parameters we give it or what arguments we call it with so
that now I can use these say Hello Function to say hello to my friend Dan and also my friend Emily.
And if I click Run we've made our function more extensible we can use it in multiple places.
And if we're designing a game well we've just use this to greet our users.
And based on the user name I can use the same function over and over again we're keeping our code dry
and clean by doing something like this.
How cool is that.
All right let's take a break and I'll see you in the next video.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.