Python 3.6 : Rescue buoy : parameters

The lifeline regarding parameters here I'm going to go back to the function parameters if you look at our coast we can wonder where this comes from, the word person, first of all you always have to think in terms of the main program which is at this level I'm going to try to divide this up into commentary like this, here we have the main program and here we have the functions, We mustn't forget that the functions are like black boxes, we call them but we don't really see how they are executed, like here at name level 1 we call the function ask for the name. At this level we don't know how it's executed and we just call the function in the main program. It is like a black box that we cannot know its continuation and when we call it we recover the value, of the function which makes that we store this value in a variable there are functions with parameters as it is the case of the function ask age and functions without parameters as it is the case of the function ask name the function ask age takes an element which is actually the name of the person retrieve this element and return it to the level here, so by asking the question we will ask directly to the person as we have seen in the program above, if I do for example, well it should be noted that we can have several parameters in a function and that we do not know through the commas. Here containing the parameters we can remember that a parameter is a local variable to a function and, is visible only inside this function so we can't exploit the sound parameter in the whole code it's only visible in this function and we can name it if we give for example an element to a function, I must automatically give a value to this function as it is the case I will delete name 2 and you will see the difference you will see that is an error what your name? mimi Titi your age 23 you see that at this level indicate on line 23 that normally there is an argument Messine one Recovery there is an argument that has not been stored at this level so if I put for example directly titi rt that I restart my code. I will take toto, tina, age toto 12 titi you see that at this level when we want to call it takes the element entered as an argument so it takes this argument to return in the function but the code works normally because when we entered the second name tina it takes into account Tina but when it should ask the question it just asks the question for Titi, you have to be really careful when you enter the parameters and when a function takes the parameters, you have to give a variable when you call this function and now it's a function that doesn't take a parameter as it's the case with name. It does not take parameter the function to ask the name does not take parameter if we put a parameter you will see that there is an error, titi I run my code you see directly that we are not on line 19 saying that normally the function should not take a parameter and we put an argument inside so be very careful when we make the functions if you did not put parameter put not value in the function and if you put you the parameters you must automatically put a value during the call. In conclusion to pass of that depends if we want to give a value to this function or not good we say to ourselves to very soon for a next video concerning the function to post.