code: def validate_digit(value, start, end):
      '''validate if a digit is valid'''
      if not str(value).isdigit() or int(value) < start or int(value) > end:
          raise ValueError('%s must be a digit from %s to %s' % (value, start, end)f validate_digit(value, start, end):
      '''validate if a digit is valid'''
      if not str(value).isdigit() or int(value) < start or int(value) > end:
          raise ValueError('%s must be a digit from %s to %s' % (value, start, end))
docs: validate if a digit is valid