Skip to content

Instantly share code, notes, and snippets.

@EZLiang
Created March 6, 2021 01:27
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 EZLiang/f67c8f4844f3e37ca3e830b3e8c7e17d to your computer and use it in GitHub Desktop.
Save EZLiang/f67c8f4844f3e37ca3e830b3e8c7e17d to your computer and use it in GitHub Desktop.
Obfuscated Python code
NOTHING = lambda: None
def IF(condition, yes, no=NOTHING):
if condition:
return yes()
else:
return no()
def ITERATE(iterable, fun):
for i in iterable:
fun(i)
def SET(vname, val):
exec("global " + vname + "; " + vname + " = " + val.__repr__())
def CHAIN(*args):
for i in args:
i()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment