Python 7.2 : The parameters
so that our function adapts to any situation in particular to names and ages of the people in a generic way we are going to make intervene the parameters of functions, I am going to begin not to remove this and I am going to rename as we had at the beginning, now if I throw my code you see that there is an error on the line because it does not recognize the name we say is not defined, so the function is not defined, if I rename like this, I delete this, I take this, and I'm going to put before the definition of the function, I run my code again we are told on the line one is not defined, so it's not defined, because we have to follow the order of passage it's first the definition, after the call of the function so you have to be very careful, it's first the definition after . ... the call we're going to pass the parameter name and age, to the function like this at the level of here, I'm going to put like this and at the level of the characters, I'm going to delete this and I'm going to put len in other words we say that, the function print function takes several arguments because inside the function we find strings of characters and numbers, that's why we use commas, what will happen if I put only one argument like I put in the call and I launch you see that we are told that at line 12 there is an error that we have entered only one argument and the argument áge is missing, so I put in 12 and I launch again, everything works normally now we are going to make sure that the age will become absolet, I'll put age = and here I'll say that if I'm going to do an if age equals zero colon we'll do the print name else I'm going to restart my code I'm going to put you see that we are told the name is madine all the time, and if I remove and I put 25 we display the second case the person is madine his age is 25 years, the name has 6 characters you see that our code works absolutely and if we leave in the measure an empty string to the name we are going to make an if name equal to an empty string of character colon, print you don't have a name, here it is like this you see that we write well you don't have a name, and if I enter christian it enters in the second case and our if is well verified so everything works normally and we'll see in the next video how to return a value with the return keyword.