def coalesce(*args):
for arg in args:<EOL><INDENT>if arg is not None:<EOL><INDENT>return arg<EOL><DEDENT><DEDENT>
Return the first non-None argument

>>> coalesce()

>>> coalesce(0, 1)
0
>>> coalesce(None, 0)
0