# Write your max_key function here:
def max_key(my_dictionary):
  largest_value = float("-inf")
  largest_key = ""
  for key, value in my_dictionary.items():
    if largest_value < value:
      largest_value = value
      largest_key = key
  return largest_key 
  
# Uncomment these function calls to test your  function:
print(max_key({1:100, 2:1, 3:4, 4:10}))
# should print 1
print(max_key({"a":100, "b":10, "c":1000}))
# should print "c"
print(max_key({1:2, 2:3}))
