Python Zastosuj funkcję do wartości słownika

# credit to Stack Overflow user in source link
# f is a Python - defined function

d2 = {k: f(v) for k, v in d1.items()}
wolf-like_hunter