title: Python remove duplicates from lists and sort
body: <p>I want to remove duplicates from my output so it looks like this:</p>
  
  <pre><code> Boston Americans 1
   New York Giants 5
   Chicago White Sox 3
   Chicago Cubs 2
   Pittsburgh Pirates 5
  </code></pre>
  
  <p>And i would like to sort my items alphabetically and print them.
  And in different part of program print items by numbers of wins.</p>
  
  <p>Output I get: Not showing every part of my list, but item counts are correct</p>
  
  <pre><code>['Boston Americans', 'New York Giants', 'Chicago White Sox', 'Chicago Cubs', 'Chicago Cubs', 'Pittsburgh Pirates']
  
  Boston Americans 1
  New York Giants 5
  Chicago White Sox 3
  Chicago Cubs 2
  Chicago Cubs 2
  Pittsburgh Pirates 5
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>def main():
  winners=[]
  with open("WorldSeriesWinners.txt", "r") as f:
      for line in f:
          a=line.strip()
          winners.append(a)
  print(winners)
  
  for n in winners:
      if n in winners:
          print(n, winners.count(n))
  
  name=input("Enter some team name: ")
  print("They won world cup:",  winners.count(name))
  
  main()
  </code></pre>