Write a python function to check if all elements in a list are equal.


Topic: Write a python function to check if all elements in a list are equal.

Solution

def all_equal(lst):
  return len(set(lst)) == 1



List all Python Programs