Hello, Goodbye¶
Topic:
output a message
The print function in the starter code provided (main.py
) currently prints out the string "Hello"
. Modify the code, so instead of printing out "Hello"
, it prints out "Goodbye"
.
Run the code and observe the fact the output says
"Hello"
.Change the string in the
print()
function to"Goodbye"
.Run the program again to observe the change. The output should no longer include
Hello
, onlyGoodbye
. Expected output:Goodbye
Starter Code¶
print("Hello")
Tests¶
from exercise.fixtures import captured_output
def test_hello_goodbye(captured_output):
assert captured_output() == "Goodbye"