Answers for "PYTHON CHECK AMOUNT IF MAX AMOUNT IS NOT GIVEN"

2

max element in dictionary python

import operator
stats = {'a':1000, 'b':3000, 'c': 100}
max(stats.iteritems(), key=operator.itemgetter(1))[0]
Posted by: Guest on March-18-2020

Python Answers by Framework

Browse Popular Code Answers by Language