def declare_constant(name, value):
    """declare constant"""
    try:
        if value and value[0] not in ('"', "'"):
            int(value)
    except ValueError:
        value = repr(value)
    return '\n{0} = {1}'.format(name.upper(), value)
