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