Untitled

mail@pastecode.io avatar
unknown
python
a month ago
1.2 kB
2
Indexable
Never
class Greet:
    def __init__(self, name):
        self.name = name

    def greet(self, festival, message):
        return f"{message} {self.name}.\n"

    def wise_diwali(self):
        return self.greet("Diwali", "Happy Diwali! Wishing you joy, prosperity, and happiness")

    def wise_raksha_bandhan(self):
        return self.greet("Raksha Bandhan", "Happy Raksha Bandhan! Wishing you love, protection, and a strong bond")

    def wise_happy_newyear(self):
        return self.greet("New Year", "Happy New Year! Wishing you happiness, success, and fulfillment")

    def wise_christmas(self):
        return self.greet("Christmas", "Merry Christmas! Wishing you joy, peace, and love")

    def wise_holi(self):
        return self.greet("Holi", "Wishing you a colorful day filled with joy, love, and vibrant moments. May your life be as colorful and beautiful as the festival of Holi!")

    def wise_eid(self):
        return self.greet("Eid", "Eid Mubarak! Wishing you peace, prosperity, and happiness")

    def wise_navratri(self):
        return self.greet("Navratri", "Happy Navratri! Wishing you joy, dance, and devotion")

g = Greet("Vishal")
print(g.wise_raksha_bandhan())
Leave a Comment