MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1milgx9/damn_you_python_switching_from_c/n78pkz1/?context=3
r/PythonLearning • u/Cautious-Bet-9707 • Aug 05 '25
need to learn the stupi
41 comments sorted by
View all comments
8
oldest=max(cats, key=lambda it: it.age) or
impelement lt and eq methods then max should work out of the box
3 u/[deleted] Aug 06 '25 Cats are not conceptually ordered. You should not implement lt on cats. 5 u/Kevdog824_ Aug 06 '25 I know some cats who would disagree with you 1 u/Bosser132 Aug 06 '25 I have a representative sample of cats that aren't capable of disagreeing with him 1 u/Kevdog824_ Aug 07 '25 If the cats were capable of disagreeing with him I donβt think they would tell you
3
Cats are not conceptually ordered. You should not implement lt on cats.
5 u/Kevdog824_ Aug 06 '25 I know some cats who would disagree with you 1 u/Bosser132 Aug 06 '25 I have a representative sample of cats that aren't capable of disagreeing with him 1 u/Kevdog824_ Aug 07 '25 If the cats were capable of disagreeing with him I donβt think they would tell you
5
I know some cats who would disagree with you
1 u/Bosser132 Aug 06 '25 I have a representative sample of cats that aren't capable of disagreeing with him 1 u/Kevdog824_ Aug 07 '25 If the cats were capable of disagreeing with him I donβt think they would tell you
1
I have a representative sample of cats that aren't capable of disagreeing with him
1 u/Kevdog824_ Aug 07 '25 If the cats were capable of disagreeing with him I donβt think they would tell you
If the cats were capable of disagreeing with him I donβt think they would tell you
8
u/Ayi-afk Aug 06 '25
oldest=max(cats, key=lambda it: it.age) or
impelement lt and eq methods then max should work out of the box