r/shittyprogramming • u/BobGeneric • Jul 04 '21
A negative aware recursive and convoluted is_even python function. As cryptic as this title.
126
Upvotes
r/shittyprogramming • u/BobGeneric • Jul 04 '21
4
u/BobGeneric Jul 04 '21 edited Jul 04 '21
edit: formatting. Thanks @404_UserNotFound
2
u/IIAOPSW Jul 04 '21
Negative False should just be True because its a double negative.
33
u/trimeta Jul 04 '21
Clever obfuscation, since the code is really just:
8
u/[deleted] Jul 04 '21
Oh I get it now. This is what they mean by pythonic.