find total no of true in a list in python

23

a_boolean_list = [True, False, True, False, False, True]
true_count = sum(a_boolean_list)

Comments

Submit
0 Comments