Usage of basic dict functions solution in Clear category for Best Stock by new_hoschi
def best_stock(data: dict) -> str:
# sort the keys of the dictionary by their values. Then choose the last (largest value).
return sorted(data.keys(),key=lambda x:data[x])[-1]
March 27, 2020