Python 3.7 : Exercise : Display function

In this part we are going to make a small exercise if we keep our code at the level of display the result we notice that we repeat, 2 times therefore the exercise is going to be to create a function display which returns the name and the age I invite you to make it, and we find ourselves in a few minutes to make this exercise you can create a function it does not matter the place there is no preference. I'm going to create this function here and I only have to return the print and the 2 prints, the name and the age so I'm going to do def display in parenthesis it takes the name and the age as parameters and I'm going to copy this and paste it here I'm going to go to this level and call my function by doing on I delete this first by doing display Name 1 comma age I copy this and I do 2, 2 we re-run the name What's your name? titi your name Mini, Titi what's your age? 12, 14 See that everything works normally. Well, that's all for this exercise, we'll see you soon for another video on conditions and variables.