In this Bite you test a function that prints to stdout. Check out pytest
's Capturing of the stdout/stderr output how to test this. You probably want to use the capsys
/ capfd
fixture in your test code.
Have fun and keep calm and code in Python!