title: How to get the maximum value of a key in dict?
body: <p>I would like to get the URL of a video with maximum resolution.</p>
  <p>If I had the following dictionary, would it be easiest to get the URL of the video with the maximum size?</p>
  <p>Is it best to split the size by partition, format the number into an int type, and then get the value?</p>
  <pre><code>videos = {
          'size_476_306': 'https://www.....',
          'size_560_360': 'https://www.....',
          'size_644_414': 'https://www.....',
          'size_720_480': 'https://www.....',
  }
  </code></pre>
  <p><strong>Solved</strong></p>
  <p>I couldn't figure out lambda, so I implemented it in a different way.</p>
  <pre><code>for size, v_url in videos.items():
  
      max_size_info = size.split('_')
      split_size = int(max_size_info[1])
      size_array.append(split_size)
      video_array.append(v_url)
  
  max_size = size_array.index(max(size_array))
  if str(size_array[max_size]) in v_url:
      print(size,v_url)
  </code></pre>