Write a Python program that takes a string input representing an arithmetic expression and calculates the result.
"(20 * 8) + (2 * 4)"
def evaluate(expression):
    try:
        return eval(expression)
    except SyntaxError:
        print('Invalid expression.')

print(evaluate("(20 * 8) + (2 * 4)"))

Output: 164.0