Find Highest Value in a dictionary : <p>I have a dictionary like so:</p>

<pre><code>class1 = {
          max: 10, 3, 5
          Michael: 4. 4, 8
          jack: 0, 0, 3
          }
</code></pre>

<p>This is the relevant code</p>

<pre><code>class1 = {}
        with open("1.txt", "r+") as f:
            for line in f:
                columns = line.split(":")
                if len(columns) == 2:
                    names = columns[0]
                    scores = columns[1].strip()
                else:
                    pass
                if class1.get(names):
                    class1[names].append(scores)
                else:
                    class1[names] = list(scores)
</code></pre>

<p>The numbers represent the scores and I would like for the highest score for each name to be printed out, this is my desired output:</p>

<pre><code>max: 10
Micheal: 8
jack: 3
</code></pre>

<p>I have already tried this:</p>

<pre><code>max_value = max(class1.values())
print(sorted(max_value))
</code></pre>

<p>But it makes no difference to my output.</p>

<p>Thank you in advanced</p>
