Build a Greeter Module (Exercise)
00:00 Let’s get started with the first exercise in this lesson. I’ll read the exercise to you, and then you should stop this video, go do the exercise yourself, and then continue with the next lesson, where I show you the solution.
00:14
This exercise is to build a greeter module. Create a module called greeter.py
that contains a single function, greet()
. This function should accept a single string parameter named name
and print the text Hello,
and then the name
to the interactive window with name
replaced by the function argument.
00:34
So, for example, Hello, Bartosz!
or Hello, Tappan!
00:39 Okay, now you can stop this video course, work on the solution, and once you’re ready, continue with the next lesson where I show you how I solved this exercise.
Become a Member to join the conversation.