title: Join strings on python
body: <p>I have to print a runner-up point of a championship in python (n = number of scores)<br/></p>
  <pre class="lang-py prettyprint-override"><code>n = int(input())
  pontosmap = map(list, input().split())
  pontos = list(pontosmap)
  pontos.sort()
  ptscrt = []
  for abc in pontos:
      if abc not in ptscrt:
          ptscrt.append(abc)
  ptscrt.sort()
  while len(ptscrt)&gt;2:
      ptscrt.pop(0)
  ptscrt.pop(1)
  res = str(ptscrt)[1:-1]
  print (res.replace(&quot;'&quot;,&quot;&quot;).replace(&quot;[&quot;,&quot;&quot;).replace(&quot;]&quot;,&quot;&quot;))
  </code></pre>
  <p>I've made this, but when is a result &gt; 10 or a negative number it goes wrong, for example:
  input =<br/>
  <code>4</code><br/><code>57 57 -57 57</code><br/>
  expected output:<br/><code>-57</code><br/>
  my output:<br/><code>-, 5, 7</code><br/>
  I'm resolving this problem: <a href="https://www.hackerrank.com/challenges/find-second-maximum-number-in-a-list/problem" rel="nofollow noreferrer">https://www.hackerrank.com/challenges/find-second-maximum-number-in-a-list/problem</a></p>