with a simple filter that test input against a range 0-100.
def foo(foo_input): if 0 <= foo_input <= 100: return f_input
No. If a return statement is not reached before the end of the function then an implicit None is returned.
return
None