title: Separate comma with python
body: <p>I am trying to separate my wordlist for a school project,
  the list is Country:Population</p>
  
  <pre><code>China:1382323332
  India:1326801576
  USA:324118787
  Indonesia:260581100
  </code></pre>
  
  <p>and so on...</p>
  
  <p>i have done this code Warning its messy and there are some duplicates:</p>
  
  <pre><code>Data = open("CountryList.txt","r")
  DATA = Data.readlines()
  file = "CountryList.txt"
  Test = open(file,'r')
  for x in range(0,len(DATA)):
     for lines in Test.readlines():
         Country,Population = lines.split(':')
  print(Country)
  print(Population)
  </code></pre>
  
  <p>the result is:</p>
  
  <pre><code>Egypt
  93383574
  Egypt
  93383574
  Egypt
  93383574
  </code></pre>
  
  <p>for 13x more</p>
  
  <p>I want this to put the Country in a Country list and the Population in a Population List so the result would be </p>
  
  <pre><code>USA 
  324118787
  China
  1382323332
  </code></pre>
  
  <p>How can I achieve this?</p>