title: parse file and add value in dictionary , Python 3.5
body: <p>I want to read score of each char from file and add it as key and value in dictionary , in python 3.5</p>
  <h1>This the code</h1>
  <pre><code>def read_score_file(score_dic):
      #open file
      f = open ('AA_score_file.txt', 'r')
      for line in f:
              #split current line 
              #1st part is Key = char
              #2nd part is value = score 
              score_dic.append(line.split())
  
      f.close()
      print (score_dic)
  </code></pre>
  <h1>while the text file contain</h1>
  <pre><code>A 1
  B 2
  C 3
  </code></pre>