def max(a, b):
""" Function to get the maximum of two numbers

This function will take two numbers as arguments and
return the maximum of the two.

:param a: The first number.
:param b: The second number.
:return: The maximum of two numbers.
"""
    if a > b:
        return a
    else:
        return b
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Write a Python code to get the maximum of two numbers.

### Response:
def max(a, b):
""" Function to get the maximum of two numbers

This function will take two numbers as arguments and
return the maximum of the two.

:param a: The first number.
:param b: The second number.
:return: The maximum of two numbers.
"""
    if a > b:
        return a
    else:
        return b
assistant

**Maximizing Two Numbers**
=========================

Here is a simple Python function to get the maximum of two numbers:

```python
def get_max(num1, num2):
    """
    Returns the maximum of two numbers.

    Args:
        num1 (float): The first number.
        num2 (float): The second number.

    Returns:
        float: The maximum of num1 and num2.

    Raises:
        ValueError: If either num1 or num2 is not a number.
    """
    if not isinstance(num1, (int, float)) or not isinstance(num2, (int, float)):
        raise ValueError("Both inputs must be numbers")
    return max(num1, num2)

# Example usage
print(get_max(10, 20))  # Output: 20
print(get_max(-5, 5))   # Output: 5
print(get_max("ten", 20))  # Output: 20
```

This function takes two numbers as input, checks if they are numbers, and returns the maximum of the two. It raises a `ValueError` if either input is not a number. The `isinstance` function is used to check if a value is an instance of a certain class (in this case, either `int` or `float`).