Created
June 19, 2020 12:31
-
-
Save adrianmarkperea/aedb8ba8f8e744ad3ffd29b1b027bc05 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 Person: | |
def __init__(self, first_name, last_name): | |
self.first_name = first_name | |
self.last_name = last_name | |
def print_full_name(self): | |
print(f'{self.first_name} {self.last_name}') | |
person_a = Person('Adrian', 'Perea') | |
person_b = Person('Ben', 'Halpern') | |
person_a.print_full_name() # Adrian Perea | |
person_b.print_full_name() # Ben Halpern |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment