MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1wfvchb/dont_know_why_i_wrote_this_code/p9py9z2/
r/PythonLearning • u/ProgramBrave718 • Sep 14 '26
35 comments sorted by
View all comments
Show parent comment
3
Not so much. It doesn't filter out Booleans before checking length.
4 u/Naive_Programmer_232 Sep 14 '26 it's logical beyond the code 2 u/SupermarketOk6829 Sep 14 '26 only one thing needed to address the list : Money. Lol 3 u/Naive_Programmer_232 Sep 14 '26 yes exactly haha. 2 u/ProgramBrave718 Sep 14 '26 I could use sum for counting true values. But, there are no false values. So, why need to filter Also, it looks messy because there is no false . I know. I wrote gibberish because yk... It's not a good example.. Written in stress
4
it's logical beyond the code
2 u/SupermarketOk6829 Sep 14 '26 only one thing needed to address the list : Money. Lol 3 u/Naive_Programmer_232 Sep 14 '26 yes exactly haha.
2
only one thing needed to address the list : Money. Lol
3 u/Naive_Programmer_232 Sep 14 '26 yes exactly haha.
yes exactly haha.
I could use sum for counting true values. But, there are no false values. So, why need to filter Also, it looks messy because there is no false . I know. I wrote gibberish because yk... It's not a good example.. Written in stress
View all comments
Show parent comment
3
u/SupermarketOk6829 Sep 14 '26
Not so much. It doesn't filter out Booleans before checking length.