summaryrefslogtreecommitdiff
path: root/progs/unparsable_programs/a571.py
blob: 4f882e61679d8f5a2fef777727b3236234fa5e90 (plain)
1
2
3
4
5
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)