code: def is_amex(n):
      
      n, length = str(n), len(str(n))
  
      if length == 15:
          if n[0] == '3' and (n[1] == '4' or n[1] == '7'):
              return True
      return False
docs: Checks if credit card number fits the american express format.