Skip to content

Instantly share code, notes, and snippets.

@bjdean
Last active September 6, 2020 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjdean/febf541e3cd39653558f0b2ddec99b4b to your computer and use it in GitHub Desktop.
Save bjdean/febf541e3cd39653558f0b2ddec99b4b to your computer and use it in GitHub Desktop.
Submission to the PyConlineAU2020 Rube Codeberg competition
#!/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