title: Trying to print the second largest number in list
body: <pre><code>x = input()
  y = map(int, input().split())
  score = list(y)
  score2 = score.remove(max(score))
  print(max(score2))
  </code></pre>
  
  <p>When I execute the above code with inputs x = 4 and y = 1 2 3 4, it shows an error message 'NoneType value is not iterable'. The last but previous line 'score2 = score.remove(max(score))' returns a None value. Why does this happen? I intend to create code which fetches the second largest number in the list</p>