Questions tagged «max»


25
ශබ්ද කෝෂයේ උපරිම අගය සහිත යතුර ලබා ගන්නේද?
මට ඇත්තේ dictionary: යතුරු නූල්, අගයන් පූර්ණ සංඛ්‍යා වේ. උදාහරණයක්: stats = {'a':1000, 'b':3000, 'c': 100} 'b'ඉහළ අගයක් ඇති යතුර බැවින් පිළිතුරක් ලෙස ලබා ගැනීමට මම කැමතියි . ප්‍රතිලෝම යතුරු අගයන් සහිත අතරමැදි ලැයිස්තුවක් භාවිතා කරමින් මම පහත සඳහන් දේ කළෙමි: inverse = [(value, key) for key, value in stats.items()] …
916 python  dictionary  max 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.