python 3 of 4 conditions true

23

values = [a>2, b>3, c>2, d>6, e>4]
if sum(values) >= 3:
    list.append(True)

Comments

Submit
0 Comments