code: def is_mastercard(n):
      
      n, length = str(n), len(str(n))
  
      if length >= 16 and length <= 19:
          if ''.join(n[:2]) in strings_between(51, 56):
              return True
      return False
docs: Checks if credit card number fits the mastercard format.