Python 3.1 : Exercise : Force to enter a name
We continue crocodile with a small exercise statement of the exercise is to check if the name entered by the user is different from an empty character string because if I launch my program go see I will launch we ask for my namebje type in it validates directly so here you will try To make a while loop and to check that the number is really a value or it is an empty character string so we see ourselves in some minutes for the correction I invite you to make the exercise. To correct this exercise if we are going to make a while loop and put in the while loop, as long as the name is equal to an empty character string we ask again for the name I make tabulation and here we must declare the name like this in this function says that as long as the name is empty or is an empty character string we restart I am going to launch program what is your name if I type enter it asks me again for the name and when I am going to type for example tit it asks me the age it comes out of the loop and asks me the age it tells me well your name is Titi, you are 24 years old next year you will be 25 years old. So that's all for this exercise, we'll see you soon for a new video on functions.