Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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