Python 3.4 : Exercise : Function ask the name
We are going to continue our side with a function ask name and inside this function we are going to have a variable answer name which recovers the value entered by the user and returns this value here. See you in some minutes for the correction. Now for this exercise we will write a function ask name with the keyword def ask name like this and don't forget the colon and inside this function we will put a block this small block like this and then return a value return name we make a tab at this level yes as we said the variable return must take the name answer name well here we will declare first answer well we will rename that everywhere answer name like this is inside answer name the returned value answer name like this and here we'll call our function with name equals request name and we'll rerun our code to see what is your name? we'll put titi your age 23 your name is titi you are 23 years old next year you will be 24 years old. Well that was all this exercise we say to each other very soon the global variables and the parameters.