Lists cmp() Function
In Python Built-In Lists cmp() function is used to compare 2 elements in the given list. Syntax: There are 2 parameters used in Lists cmp() Function : list1 The first list to be compared and list2 The second list to be compared. Example: