title: Reading in data to a bubble sort algorithm in Python
body: <p>My code snippet:</p>
  
  <pre><code># BubbleSort in Python 3
  
  def bubblesort(mylist):
      for i in range (0, len(mylist) - 1): 
          for j in range (0 , len(mylist) - 1 - i):
              if mylist[j] &gt; mylist[j+1]:
                  mylist[j], mylist[j+1] = mylist[j+1], mylist[j]
      return mylist
  
  thelist = ['4','5','4','3','7','6','9','0']
  print(bubblesort(thelist))
  </code></pre>
  
  <p>The File <code>numbers.txt</code>contains data:</p>
  
  <blockquote>
    <p>2
    5
    32
    6
    4
    7
    9
    8
    6
    34
    1343
    5
    5343</p>
  </blockquote>
  
  <p>I am trying to read in these numbers from this text file into the variable <code>thelist</code>. What code do I need to change/write to make this happen?</p>