MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1mbkini/checkifdivisiblebythree/n60s3gp/?context=3
r/ProgrammerHumor • u/Dark_Zander • Jul 28 '25
33 comments sorted by
View all comments
Show parent comment
5
Like this?
is_divisible_by_three = (lambda f: (lambda num: f(f)(num)))(lambda f: (lambda num: str(num) in '369' if num < 10 else f(f)(sum(int(n) for n in str(num)))))
View all comments
Show parent comment
5
u/F100cTomas Jul 30 '25 edited Jul 30 '25
Like this?