Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 633 Bytes

File metadata and controls

12 lines (9 loc) · 633 Bytes

Exercise 01 - Hello World

This exercise is about creating functions, using default parameters, and importing modules. We create a simple function that prints "Hello <name>" to the console.

Tasks

  • 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 variable sayHelloLambda
  • import the function getRandomName() from the src directory
  • let the sayHelloLambda(name) function take a random name if no name is given