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


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

Solution

def all_unique(lst):
  return len(lst) == len(set(lst))



List all Python Programs