title: Splitting .txt of integers into list Python
body: <p><br/>
  I am considering doing the <a href="https://codingcompetitions.withgoogle.com/hashcode?show=progress" rel="nofollow noreferrer">Google Hash Code</a>, but am running into some issues on the <em>practice problems</em>! The problem is order a number of pizza slices without going over the limit. The input gives you the different quantities of slices for each type. This is the c_medium.in input file:</p>
  
  <pre><code>4500 50
  7 12 12 13 14 28 29 29 30 32 32 34 41 45 46 56 61 61 62 63 65 68 76 77 77 92 93 94 97 103 113 114 114 120 135 145 145 149 156 157 160 169 172 179 184 185 189 194 195 195
  </code></pre>
  
  <p>To determine my options for sizes, I am using this code:</p>
  
  <pre class="lang-py prettyprint-override"><code>file = open('c_medium.in','r')
  raw_pizza_types = file.readline(2)
  pizza_types = raw_pizza_types.split()
  print(pizza_types)
  max = file.readline(1)
  def solution() -&gt; None:
    #pizza_types = [int(i) for i in pizza_types] # will loop through strings and convert them to ints 
    pass
  </code></pre>
  
  <p>This code should print out a list with the number of slices on different pies, but instead simply prints out <code>['45']</code>. Can anyone help me fix this?</p>