Finding maximum value in a dictionary Python : <p>the input I have given is </p>

<ul>
<li>BatmanA,14</li>
<li>BatmanB,199</li>
<li>BatmanC,74</li>
<li>BatmanD,15</li>
<li>BatmanE,9</li>
</ul>

<p>and the output i expect is the highest value and i get something else this is my code below i have tried other methods too pls help thanks.</p>

<pre><code>N = int(input("Enter the number of batsman : "))

d = {}

for i in range(0,N):
    batsman = input("enter the batsman values " ).split(',')
    d[batsman[0]] = batsman[1]
v = list(d.values())
k = list(d.keys())
print(k[v.index(max(v))])
</code></pre>
