Objective
Create a Python program that defines two functions to greet and say goodbye. The exercise is similar to *Function greeting and farewell*, but the greeting function must receive a parameter called name, of text type.
Instructions
- In the
mainfunction, ask the user for a name. - Call the
greetfunction passing the name as an argument. It prints the messageHellofollowed by the name. - Then call the
farewellfunction, which prints the messageGoodbye!. - Run the program and check the output, which must include both messages.
Jonny
Hello Jonny
Goodbye!
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise