Greet Someone (Exercise)
00:00 Let’s get started with the first exercise. I will read the exercise out for you and then you can pause this course, solve the exercise yourself, and then go on to the next lesson where you can see how I solve the exercise.
00:14
Your first exercise is to greet someone. Write a function called greet() that takes one string parameter called name and displays the text "Hello, <name>!", where the name is replaced by the value of the name parameter.
00:33
For example, when you pass in "Lyra" into the greet() function, then the function should display "Hello, Lyra!".
00:41 Okay, now you can pause this video course and once you’re ready, head on to the next lesson, where you can see how I solve the exercise.
Become a Member to join the conversation.
