r/PythonLearning • • Sep 14 '26

🥲Don't know why I wrote this code NSFW

Post image
139 Upvotes

35 comments sorted by

View all comments

9

u/Mamuschkaa Sep 14 '26 • Bravo

Replace len(...) with sum(...) so that if some of the variables get false, they are not counted.

1

u/ProgramBrave718 Sep 14 '26

Okay thanks for telling me

1

u/pajtonas Sep 14 '26

Best advice both in and out of python 🥲🫡