def is_single_number(val):
return is_single_integer(val) or is_single_float(val)<EOL>
Checks whether a variable is a number, i.e. an integer or float.

Parameters
----------
val
    The variable to check.

Returns
-------
bool
    True if the variable is a number. Otherwise False.