Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if more than 1 is true

if sum([a,b,c,d]) > 1:
    print("Please specify at most one of 'a', 'b', 'c', 'd'.")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #true
ADD COMMENT
Topic
Name
1+8 =