Whoops, actually in this case I would recommend `raise ValueError('message')`, since if the check fails the algorithm stops. This is better than returning nothing, and provides the user with a traceback. If you want to warn the user something may be amiss, but continue anyway, using `from warnings import warn` would be the preferred method.

Shame on me for recommending a print statement...