r/PythonLearning • • Sep 14 '26

🥲Don't know why I wrote this code NSFW

Post image
137 Upvotes

35 comments sorted by

View all comments

1

u/python_gramps Sep 14 '26

Instead of len(my_life), sum(my_life) will return the number of trues.

1

u/ProgramBrave718 Sep 14 '26

Yeah, i will keep it in my mind