Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to check if all values in list are equal python

if len(lst) < 0 :
        res = True
    res = lst.count(lst[0]) == len(lst)
      
    if(res):
        print("Equal")
 
PREVIOUS NEXT
Tagged: #check #values #list #equal #python
ADD COMMENT
Topic
Name
5+7 =