info_outline

Solutions will be available when this assignment is resolved, or after a few failing attempts.

Largest key

Write a function that receives a dictionary with only String keys and returns the longest key in the dictionary. Example:

longest_key({'hello': 'World', 'abc': 123})  # hello
longest_key({})  # None

Test Cases

tests

[]
def longest_key(a_dict): pass