Imgflip Logo Icon
made w/ Imgflip meme maker
43 views • 4 upvotes • Made by while-true-do-end 5 days ago in MS_memer_group
4 Comments
0 ups, 1h
i still do the great "if [_] else" chain of scratch
0 ups, <1h,
1 reply
for determining odd or even just do lambda x: True if x%2 == 0 else False
0 ups, <1h,
1 reply
i'll wager a lambda x:x&1
0 ups, <1h
idea: oddoreven = lambda x: x&1
and then you have an odd/even function
if oddoreven(num):
print("odd")
else:
print("even")
Created with the Imgflip Meme Generator