Last active
July 20, 2021 02:40
-
-
Save huytung228/75a2a8baf84a2de5d7feb24521edbbe4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 f"{self.first} {self.last}" | |
e1 = Employee('Le', 'Huy Tung', 50000) | |
print(e1.fullname()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment