Question: 
Write a function to check the given decimal with a precision of 2 by using regex.


Model's Code:
import re

def is_decimal(value):
    return re.match(r'^\d+\.\d{2}$', value) is not None



Sample Correct Code:
import re
def is_decimal(num):
  num_fetch = re.compile(r"""^[0-9]+(\.[0-9]{1,2})?$""")
  result = num_fetch.search(num)
  return bool(result)


Asserts:
assert is_decimal('123.11') == True
assert is_decimal('0.21') == True
assert is_decimal('123.1214') == False


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 208 of 974: 154/208 (74.03846153846155%): success