r/programminghorror • u/Limp_Illustrator7614 • Sep 16 '26
Python it's a miracle this works
prints 2 1's separated by a new line
repost cuz it got filtered cuz i was using a vpn
189
Upvotes
r/programminghorror • u/Limp_Illustrator7614 • Sep 16 '26
prints 2 1's separated by a new line
repost cuz it got filtered cuz i was using a vpn
34
u/Livie00 Sep 16 '26
That’s not even horror but a really neat and interesting solution
49
u/Powerkaninchen Sep 16 '26
You don't need to escape single quotes in a multiline string:
is sufficient.
7
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Sep 17 '26
I hope you don't mind me asking what that "do" lambda is for.
2
u/iamalicecarroll Sep 19 '26
just use Hy