Created
June 24, 2020 19:39
-
-
Save brinchj/1fb53b838a0f2c3d18e5e2343f333a5e to your computer and use it in GitHub Desktop.
Mit navn det står med python
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
str = lambda x: x.__str__() | |
l=[42] | |
class o(list): | |
def __add__(s,a): list.append(s, str(a)) | |
def __xor__(s,a): map(str,[a[0]]*a[1]); s+a[0] | |
def __str__(s): return ''.join(s) | |
def d(_): | |
def d_(f): | |
def q(*a,**b): | |
_[:]=_*2 | |
def __(): | |
_[:]=_[:len(_)/2] | |
return __ | |
return __ | |
return q | |
return d_ | |
@d(l) | |
def f(a=0, b=1): | |
return lambda : a+b | |
def e(_): | |
def e_(g): | |
def r(*a,**b): | |
_[:]=_+[_[-1]] | |
def __(): | |
_[:]=_[:-1];return __ | |
return g(len(_), __, **b) | |
return r | |
return e_ | |
@e(l) | |
def g(a=1, b=0): | |
g.__str__ = lambda : chr(g()[0]) | |
return a,b | |
if (f(),f(),f() == g(),g(),g()): | |
f() and g() or g() and f() | |
f();f();f()() | |
l = g()*5 | |
any(l) and map(str, [g(i) for i in l]+[g,g]); | |
o = o() | |
o+g | |
bool(o^(g,i) for i in [2]) and (o^(g,i) for i in [3]) | |
any (o^(g,i) for i in [4]) or (o^(g,i) for i in [5]) | |
bool(o^(g,i) for i in [6]) or (o^(g,i) for i in [7]) | |
g()[1]()()()()()()()()();o+g;g()[1]()()()()()()()()();o+g | |
bool(o^(g,i) for i in [10,11]) | |
all (o^(g,i) for i in [12,13]) | |
bool(o^(g,i) for i in [14,15]) | |
o[3]=chr(ord(o[3])-0x20) | |
import sys; sys.stdout.write(str(o)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment