title: printing out dictionnaires
body: <p>I have a rather specific question:</p>
  
  <p>I want to print out characters at a specific place using the <code>\033[</code> syntax. This is what the code below should do: (the dict <code>cells</code> has the same keys as <code>coords</code> but with either <code>'*'</code> or <code>'-'</code> as value.)</p>
  
  <pre><code>coords = {'x'+str(x)+'y'+str(y) : (x,y) for x,y, in itertools.product(range(60), range(20))}
  
  for key, value in coords.items():  
  
      char = cells[key]  
      x,y = value
      HORIZ=str(x)
      VERT=str(y)
      char = str(char)
      print('\033['+VERT+';'+HORIZ+'f'+char)
  </code></pre>
  
  <p>However, I noticed that if I put this into a infinite while loop, it does not always prints the same characters at the same position. There are only slight changes, but it deletes some and puts them back in after some loops. I already tried it with lists, and there it seems to behave just fine, so I tend to think it has something todo with the dict, but I can not figure out what it could be. You can see the Problem in a console here: <a href="https://www.pythonanywhere.com/shared_console/6118e9d5-f7ba-4738-88c2-1fc30f3f66d1" rel="nofollow">SharedConsole</a>.I am happy for every tip on this matter.</p>
  
  <p>On a related topic: 
  After the printing, some changes should be made at the values of the <code>cells</code> dict, but for reason unknown to me, the only the first two rules are executed and the rest is ignored. The rules should test how many neighbours (which is in <code>population</code>) are around the cell and apply the according rule. In my implemention of this I have some kind of weird tumor growth (which should not happen, as if there more than three around they should the cell should die) (see <a href="https://www.pythonanywhere.com/shared_console/9f76efe8-7994-4440-890b-dca8204c2267" rel="nofollow">FreakingTumor</a>):    </p>
  
  <pre><code>if cells_copy [coord] == '-':
      if population == 3:
          cells [coord] = '*'
  if cells_copy [coord] == '*':
      if population &gt; 3:
          cells [coord] = '-'
      elif population &lt;= 1:
          cells [coord] = '-'
      elif population == 2 or 3:
          cells [coord] = '*'
  </code></pre>
  
  <p>I checked the <code>population</code> variable several times, so I am quite sure that is not the matter. 
  I am sorry for the slow consoles.</p>
  
  <p>Thanks in advance!
  Kyril</p>