[Solved] Min valule in dict [closed]


You are getting this –

TypeError: 'int' object is not iterable

Because min expects an iterable. Look at the docs

But for i in a.keys() gives you int and you can not iterate over an int object. Pass a list like –

min(a) or min(a.values()) # depending on your requirement

1

solved Min valule in dict [closed]