File: LP6E/Chapter28/person_2.py

class Person:
    def __init__(self, name, job, pay):      # Constructor takes three arguments
        self.name = name                     # Fill out fields when created
        self.job  = job                      # self is the new instance object
        self.pay  = pay



[Home page] Books Code Blog Python Author Train Find ©M.Lutz