human
Write a function to check whether a given string is a decimal number with a precision of 2. Here is a solution in Python:
Write me a the Python program you requested?
assistant
#Here is the Python program you requested.
 def is_decimal(num):
    import re
    dnumre = re.compile(r"""^[0-9]+(\.[0-9]{1,2})?$""")
    result = dnumre.search(num)
    return bool(result)