Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #values #list
ADD COMMENT
Topic
Name
6+3 =