MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1wfvchb/dont_know_why_i_wrote_this_code/p9pe10q/
r/PythonLearning • u/ProgramBrave718 • Sep 14 '26
35 comments sorted by
View all comments
9
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 🥲🫡
1
Okay thanks for telling me
Best advice both in and out of python 🥲🫡
View all comments
9
u/Mamuschkaa Sep 14 '26 •
Replace len(...) with sum(...) so that if some of the variables get false, they are not counted.