r/PythonLearning • • Sep 14 '26

🥲Don't know why I wrote this code NSFW

Post image
143 Upvotes

35 comments sorted by

View all comments

Show parent comment

3

u/SupermarketOk6829 Sep 14 '26

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