class Customer: A simple class that represents a customer at the bank.
Fantastic news! We've Found the answer you've been seeking!
Question:
class Customer: """ A simple class that represents a customer at the bank. """ def __init__(self, name, ssn): if type(name) is not str or len(name) < 2: raise AttributeError("Invalid name for the account.") if type(ssn) is not str or not ssn.isnumeric(): raise AttributeError("Invalid SSN for the account.") self.name = name self.ssn = ssn
Related Book For
Mathematical Applications for the Management Life and Social Sciences
ISBN: 978-1305108042
11th edition
Authors: Ronald J. Harshbarger, James J. Reynolds
Posted Date: