This exercise is about creating functions, using default parameters, and importing modules. We
create a simple function that prints "Hello <name>"
to the console.
- implement the function
sayHello(name)
that takes a given name of type string and prints"Hello <name>"
to the console. If no name is given, take"World"
as name. - create the
sayHello(name)
function as lambda and store it in the variablesayHelloLambda
- import the function
getRandomName()
from thesrc
directory - let the
sayHelloLambda(name)
function take a random name if no name is given