A list is homogenous if it contains at least two equal numbers. A list is heterogeneous if it contains at least two different numbers. For example, the list [2,2] is homogenous, and the list [2,1,4] is heterogeneous, the list [1,2,1,4] is both homogenous and heterogeneous, and the empty list is neither homogenous nor heterogeneous.

Assignment

Write a function homoOrHetero which can be used to determine the homogeneity and/or heterogeneity of a given list. The given list must be given to the function as an argument, and the function must print a string as a result that indicates the kind of list. The possible cases that need to be distinguished are

Example

>>> homoOrHetero([9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9])
'homo'
>>> homoOrHetero([1, 10, 4, 5, 6, 2, 3])
'hetero'
>>> homoOrHetero([10, 9, 8, 10, 2, 10, 4, 6, 3, 7, 5, 4, 4, 7])
'both'
>>> homoOrHetero([7])
'nothing'