r/pythonforengineers • • Mar 19 '21

even = lambda a : a%2==0 😂🤣🤯

Post image
30 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/varungupta3009 Mar 19 '21

Doesn't matter. As long as it returns a truthy/falsey value, it should work for 99% of use cases, unless ofc you're explicitly checking for a type or comparing to a bool.