title: Enumerate printing extra line when iterating
body: <p>This is a method that I am writing for a class, for some reason this returns an ONE extra line than intended. The code below is just a testing, the values are not representative.</p>
  
  <pre><code>n = ""
  
  dixoncider = ["a","f","f","g","f"]
  
  for count,ele in enumerate(dixoncider,0):
      if count is len(dixoncider):
          break
      else:
          n = n + str(count) + ": " + str(ele) + "\n"
  print(n)
  </code></pre>
  
  <p>Output which is wrong:</p>
  
  <pre><code>0: a
  1: f
  2: f
  3: g
  4: f
  
  
  </code></pre>