Skip to content

Instantly share code, notes, and snippets.

@jonascheng
Created June 8, 2019 14:53

Revisions

  1. jonascheng created this gist Jun 8, 2019.
    10 changes: 10 additions & 0 deletions EmployeeClassWithPrintMethods.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    import datetime

    class Employee:
    // ...

    def printForHR(self):
    print(u'{},{},{}'.format(self.first_name, self.last_name, self.wage))

    def printForIT(self):
    print(u'{},{},{}'.format(self.first_name, self.last_name, self.birth))