Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
EZ solution in Clear category for Best Stock by ivonkarren
import operator
def best_stock(data):
return sorted(data.items(), key=operator.itemgetter(1))[-1][0]
if __name__ == '__main__':
print("Example:")
print(best_stock({"CAC":91.1,"TASI":120.9,"ATX":1.01}), best_stock({"CAC":10,"WIG":1.2,"ATX":390.2}))
Oct. 12, 2018