yuvrajkale87 / 029-max-min-dict-values

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Write a function to find the maximum and minimum values in a dictionary

Define a function that takes a dictionary as a parameter and returns a tuple of the maximum and minimum value.

Example:

Input:

{'a': 1, 'b': 2, 'c': 3}


Output:

(3, 1)

Challenge:

Do not use for-loop.

About


Languages

Language:Python 100.0%