Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for I Love Python! by abc512
class love(metaclass=type('I', (type,), {'mm': '!'})):
def __call__(self, func):
return lambda : f'{type(type(self)).__name__} {type(self).__name__} {func.__name__.split("_")[2].capitalize()}{type(self).mm}'
@love()
def i_love_python():
"""
Let's explain why do we love Python.
"""
pass
if __name__ == '__main__':
#These "asserts" using only for self-checking and not necessary for auto-testing
assert i_love_python() == "I love Python!"
Jan. 12, 2018