DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+7 =
Submit