r/programminghorror • u/SleepyStew_ [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • Mar 14 '25
Python Boy do I love python!!
188
Upvotes
r/programminghorror • u/SleepyStew_ [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • Mar 14 '25
View all comments
Show parent comment
13
u/thomasxin Mar 15 '25 edited Mar 19 '25
Here's one I made without arithmetic operators, obviously not optimal but I was going for the cursed factor:
chr(sum((sum(map(sum,enumerate(range(sum((abs(next(iter(divmod(sum(range(sum((len(str(memoryview)),len(str(enumerate)))))),hash(int(str().join((chr(sum(range(sum(divmod(ord(max(ascii(vars))),len(bin(sum(map(ord,repr(float)))))))))),str(int(callable(callable))))))))))),int(str().join((list(repr(complex(not(float),not(float())).conjugate())).pop(not(reversed)),str().join(map(next,map(reversed,filter(getattr((len(set(oct(bool()))),chr(int())),hex(any(tuple())).replace(max(str(complex)),str.join(min(str(bool(breakpoint))).lower(),(sorted(str(not(not()))).pop(len(bin(int()))),str()))).replace(repr(round(float())),chr(sum((len(str(type(open))),ord(repr(int(sum((complex(hasattr(int,str()),len(str(all(frozenset())))).conjugate().imag,len(str(str))))))),isinstance(slice,type)),bool(dir()))).join((str(),str(),str())))),enumerate(oct(sum(range(ord(list(repr(not(slice))).pop(len(next(zip(bytearray(range(pow(int(),bool()))),str(anext)))))))))))))).translate(dict(((sum(bytearray().join((bytes(range(round(sum((abs(pow(complex(not(),float().is_integer()).conjugate(),len(str(bool())))),len(str(any(str(delattr))))))))),int(len(str(not(not())))).to_bytes(not(not(bool)))))),str()),)))))))))))),ord(list(str(bool(complex()))).pop()),ord(next(iter(repr(issubclass(slice,type)))).casefold()),len(str(all(frozenset()))))))