res = all(ele == lst[0] for ele in lst)
if(res):
print("Equal")
# check if all elements in list are equal
my_list = [1, 1, 1, 1, ]
def check_if_equal(list):
if len(set(list)) == 1:
print('True') # output True
else:
print('False')
check_if_equal(my_list)
if len(lst) < 0 :
res = True
res = lst.count(lst[0]) == len(lst)
if(res):
print("Equal")
num = [1,1,1,1,1,1]
result = num.count(num[0]) == len(num)
if (result):
print(True)
else:
print(False)