title: How to sort a list with space between them
body: <p>I'm trying to sort a list with space 
  like,</p>
  
  <pre><code>my_list = [20 10 50 400 100 500]
  </code></pre>
  
  <p>but I got an error </p>
  
  <blockquote>
  <pre><code>"ValueError: invalid literal for int() with base 10: '10 20 50 100 500 400 '"
  </code></pre>
  </blockquote>
  
  <p>code: </p>
  
  <pre><code>strength = int(input())
  strength_s = strength.sort()
  print(strength_s)
  </code></pre>