Sample Python program to evaluate mathematical expressions