Last active
December 16, 2021 19:30
-
-
Save nebiyuelias1/f9262d834a4d6a582ebc97d65b40b5c4 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(object): | |
def __init__(self, name): | |
print('Instantiating a person') | |
self.name = name | |
def __str__(self): | |
return self.name | |
def say_selam(p=Person('Nebiyu')): | |
print(f'Selam {p}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment