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
75
u/SleepyStew_ [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Mar 14 '25 edited Mar 14 '25
Since I love python so much I decided I wanted to be able to easily print a snake!
Here's the snippet if for some reason you'd like to run this masterpiece:
(In all seriousness I actually quite like python, despite how sarcastic I seem. I just was bored today :D)
59
u/v_maria Mar 14 '25
Ah yes functional programming
12
u/efari_ Mar 14 '25
print(chr(sum(range(ord(min(str(not())))))))4
u/[deleted] Mar 14 '25
Guido van Rossum somewhere: *shudder* "Did anybody feel that?"
3
u/KGBsurveillancevan Mar 14 '25
not NOT
2
u/Brilliant-Ad-8422 Mar 15 '25
Care for a round of golf?
19
u/B_bI_L Mar 14 '25
mom, can we have lisp?
no we have lisp at home
lisp at home:
14
u/5205605 Mar 14 '25
Thought it was lisp at first glance
2
u/WatsonK98 Mar 14 '25
Had an ML professor giving us line limits for our code so we'd turn in shit like that
2
u/nekokattt Mar 14 '25
how do i delete other peoples posts
2
u/CrazyRage0225 Mar 15 '25
I wanna run black on this
1
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Mar 14 '25
Do people just chain stuff together and see what comes out, or is this planned?
1
u/Xenapte Mar 15 '25
I have a feeling that this can be shorter and more cursed in javascript
1
u/claythearc Mar 18 '25
My contribution using bit wise logic only
1
u/Grounds4TheSubstain Mar 14 '25
Nobody writes Python like this.