class Employee: def __init__(self, first, last, pay): self.first = first self.last = last self.email = first + '.' + last + '@email.com' self.pay = pay def fullname(self): return '{} {}'.format(self.first, self.last) emp_1 = Employee('Masoud', 'Sadrnezhaad', 5000) emp_2 = Employee('Mostafa', 'Amiri', 1000) print(emp_1.fullname()) print(Employee.fullname(emp_1))