#!/usr/bin/env python # -*- coding:utf-8 -*- def make_sum(a, b): return ['+', a, b] def make_prod(a, b): return ['*', a, b] def make_diff(a, b): return ['-', a, b] def make_div(a, b): return ['/', a, b] def is_basic_exp(a): return not isinstance(a, l