def checkDuplicate(myList):
    """
    This function checks for duplicate values in a given Python list.
    """

    for i in range(len(myList)):
        myDict = {}  # Count occurences in a dictionary
        for x in myList:
            if x in myDict:
                return True  # If it already exists, the current x is a duplicate!
            else:
                myDict[x] = 1
    return False