def getKeyByValue(dictOfElements, valueToFind):
    """Get the first key that contains the specified value."""
    for key, value in dictOfElements.items():
        if value == valueToFind:
            return key