Last active
September 6, 2020 01:38
-
-
Save bjdean/febf541e3cd39653558f0b2ddec99b4b to your computer and use it in GitHub Desktop.
Submission to the PyConlineAU2020 Rube Codeberg competition
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
#!/usr/bin/env python3 | |
from bs4 import BeautifulSoup | |
def decl(l): return lambda f: lambda: l + f() | |
def decp(f): return lambda: print(BeautifulSoup(f(),'html.parser').prettify(), end='') | |
@decp | |
@decl('H') | |
@decl('e') | |
@decl('l') | |
@decl('l') | |
@decl('o') | |
@decl(' ') | |
@decl('W') | |
@decl('o') | |
@decl('r') | |
@decl('l') | |
@decl('d') | |
@decl('!') | |
def main(): return '' | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment