Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
native_best_stock solution in Uncategorized category for Best Stock by Jon_Red
def best_stock(data:dict)->str:return max(data,key=data.get)
if __name__ =='__main__':
# self-checks
assert best_stock({'CAC':10.0,'ATX':390.2,'WIG':1.2})=='ATX'
assert best_stock({'CAC':91.1,'ATX':1.01,'TASI':120.9})=='TASI'
July 14, 2020