class Employee:
def __init__(self, first, last, pay):
self.first = first
self.last = last
self.pay = pay
self.email = first + "." + last + "@company.com"
def fullname(self):
return "{} {}".format(self.first, self.last)
So in fullname()
you're supposed to only use self
. I don't understand why I shouldn't have to write the first and last parameters.