class Software Engineer:
"""
π©βπ» Just like the Singleton pattern ensures a single, unique instance,
each of us is a singular, irreplaceable individual in this world.
"""
_instance = None
def __new__(cls, *args, **kwargs):
""" πΆ We create ourselves, and everything depends solely on us. """
if cls._instance is None:
cls._instance = super().__new__(cls)
return cls._instance
def __init__(self):
self.name: str = "π© Marie Kostenkova"
self.role: str = "ππ DevOps Engineer/Python developer"
self.language_spoken: set[str] = {"π¨πΏ cs_CZ", "πΊπΈ en_US", "πΊπ¦ uk", "π·πΊ ru-RU"}
def say_hi(self) -> str:
""" Return my greeting message."""
return "π Thanks for dropping by, hope you find some of my work interesting."
me = PythonDeveloper()
greeting = me.say_hi()
print(greeting)
Popular repositories Loading
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.




