title: Issue with Input statement
body: <p>I am a newbie to Python and learning lists. Here is the program I have written for sorting numbers:</p>
  
  <pre><code>def sorting(final_input):
            final_output= []
            count = 0
            length = len(final_input)
            while count &lt; length:
                      final_output.append(min(final_input))
                      final_input.remove(min(final_input))
                      count += 1
                      if count ==  (length): 
                                break
            return(final_output)
  final_input = [5,6,57,531,9,1]
  print(final_input)
  print(sorting(final_input))
  </code></pre>
  
  <p>The above program works fine and gives the following output:</p>
  
  <pre><code>[5, 6, 57, 531, 9, 1]
  [1, 5, 6, 9, 57, 531]
  </code></pre>
  
  <p>But when I give input with input command (as follows):</p>
  
  <pre><code>def sorting(final_input):
            final_output= []
            count = 0
            length = len(final_input)
            while count &lt; length:
                      final_output.append(min(final_input))
                      final_input.remove(min(final_input))
                      count += 1
                      if count ==  (length): 
                                break
            return(final_output)
  
  final_input = []
  while True:
            user_input = input("Enter number or quit: ")
            if user_input == "quit":
                      break
            final_input.append(user_input)
  print(final_input)
  print(sorting(final_input))
  </code></pre>
  
  <p>The above program gives the following incorrect output. It is not clear to me what needs to be updated with ‘’input’’ statement. Any help would be appreciated.</p>
  
  <pre><code>Enter number or quit: 5
  Enter number or quit: 6
  Enter number or quit: 57
  Enter number or quit: 531
  Enter number or quit: 9
  Enter number or quit: 1
  Enter number or quit: quit
  ['5', '6', '57', '531', '9', '1']
  ['1', '5', '531', '57', '6', '9']
  </code></pre>