You are required to implement a function named evaluate_operation that performs basic arithmetic operations on two numbers. The function should take two numeric inputs and a string representing the desired arithmetic operation. Based on the operation provided, it should return the result of the operation.
Input/Output Requirements
Input Parameters:
a: The first number (integer or float).
b: The second number (integer or float).
operation: A string that indicates the arithmetic operation to perform. It can be one of the following: '+', '-', '/', '*', '%', or '**'.
Output:
The function should return the result of the operation as a number (integer or float).
If the operation is not one of the specified strings, return None.
Implementation
Your implementation should be placed in a file named /app/solution.py. Please ensure that the function adheres to the specified signature and operates correctly for all valid input cases.
Example:
python
# Calling the function
result = evaluate_operation(10, 5, '+') # Should return 15
result = evaluate_operation(10, 5, '/') # Should return 2.0
result = evaluate_operation(10, 5, '**') # Should return 100000
result = evaluate_operation(10, 0, '/') # Should raise a ZeroDivisionError
result = evaluate_operation(10, 5, 'invalid') # Should return None
Make sure to handle exceptions appropriately (e.g., division by zero) and document your code where necessary.