Merry Christmas 🎄

main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env python3
#
# author        : JV conseil – Internet Consulting
# credits       : JV-conseil
# licence       : BSD 3-Clause License.
# copyright     : Copyright (c) 2022, JV conseil – Internet Consulting,
#                 All rights reserved.
# =====================================================================


class _:
    "Is Christmas 🎄 a Codable 👨‍💻 Task ⁉️"

    def __init__(self, wish="Christmas!"):
        self.wish = wish

    def __wish(self, a: str) -> str:
        _ = lambda a: f"{a}..."
        b = _(a)
        print(b)
        self.__wish(a)

    def __call__(self, a: str) -> str:
        try:
            self.__wish(a)
        except RecursionError:
            print(self.wish)


if __name__ == "__main__":
    IWishYou = _()
    IWishYou("Merry")
powered byLogosnappify