0 out of 464 challenges solved

Check Dictionary Values Uniformity

Write a function `check_value(dictionary, value)` that checks if all the values in a given dictionary are equal to a specified value.

#### Function Signature
```python [main.nopy]
def check_value(dictionary: dict, value: any) -> bool:
```

#### Parameters
- `dictionary` (dict): The dictionary whose values need to be checked.
- `value` (any): The value to compare against all dictionary values.

#### Returns
- `bool`: Returns `True` if all values in the dictionary are equal to the specified value, otherwise `False`.

#### Example Usage
```python [main.nopy]
check_value({'a': 1, 'b': 1, 'c': 1}, 1)  # Output: True
check_value({'a': 1, 'b': 2, 'c': 1}, 1)  # Output: False
check_value({}, 1)  # Output: True (empty dictionary has no values to contradict)
```
def check_value(dictionary: dict, value: any) -> bool:
    """
    Check if all values in the dictionary are equal to the specified value.

    Args:
        dictionary (dict): The dictionary to check.
        value (any): The value to compare against.

    Returns:
        bool: True if all values are equal to the specified value, False otherwise.
    """
    # Implement the function logic here
    pass