title: Question is Find the 2nd largest digit ,What is wrong with my code, I am a beginner
body: <p>Question is   Find the 2nd largest digit ,What is wrong with my code, I am a beginner ,Output is still zero</p>
  <pre><code>a = input(&quot;Enter your number&quot;)
  max = 0
  maxx  = 0
  
  list1 = []
  
  
  for i in a :
      list1.append(i)
      if i &gt; str(max) :
          max = i
          list1.remove(max)
          for j in list1 :
              if j &gt; str(maxx) :
              maxx = j
  print(maxx)
  </code></pre>