if numbers are even return lesser in python code example
Example 1: how to check if all characters in string are same python
s == len(s) * s[0]
Example 2: how to check if there are duplicates in a list python
>>> your_list = ['one', 'two', 'one']
>>> len(your_list) != len(set(your_list))
True