write the code in python
Design a class named PersonData with the following membervariables:
- lastName
- firstName
- address
- city
- state
- zip
- phone
Write the appropriate accessor and mutator functions for thesemember variables. Next, design a class named CustomerData , whichis derived from the PersonData class. The CustomerData class shouldhave the following member variables:
- customerNumber
- mailingList
The customerNumber variable will be used to hold a uniqueinteger for each customer. The mailingList variable should be abool . It will be set to true if the customer wishes to be on amailing list, or false if the customer does not wish to be on amail-ing list. Write appropriate accessor and mutator functions forthese member variables.
Next write a program which demonstrates an object of theCustomerData class in a program. Your program MUSTuse exception handling. You can choose how to implement theexception handling. Organize your non object oriented code into amain function