Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to check is all the values in a list are same or not

num = [1,1,1,1,1,1]
result = num.count(num[0]) == len(num)
if (result):
  print(True)
else:
  print(False)
 
PREVIOUS NEXT
Tagged: #check #values #list
ADD COMMENT
Topic
Name
2+9 =