Objective
Create a Python program that defines two functions: one to greet and another to say goodbye. Then, call both functions from the main function of the program.
Instructions
- Implement a function called
greetthat displays the greetingHelloon the screen. - Implement another function called
farewellthat doesn't need any parameters and displays the farewell messageGoodbye!. - Implement a function called
mainthat callsgreetand thenfarewell. - Run the program and check the output, which must include both messages.
Hello
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