title: Why isn't the correct value being chosen?
body: <pre><code>a = input(&quot;Enter Number 1: &quot;)
  b = input(&quot;Enter Number 2: &quot;)
  c = input(&quot;Enter Number 3: &quot;)
  if a &gt; b:
      if (a &gt; c):
          print(&quot;The largest number is&quot;,a)
      else:
          print(&quot;The largest number is&quot;,c)
  else:
      if (b &gt; c):
          print(&quot;The largest number is&quot;,b)
      else:
          print(&quot;The largest number is&quot;,c)
  </code></pre>
  <p>when I input 12 24 and 6 respectively it chooses 6 as the largest and I have absolutely no clue as to why? any help would be greatly appreciated.</p>