title: How can i make a dictionary from txt file in python
body: <p>I have get this txt file</p>
  
  <pre><code>A:{A:0, B:6, C:4, D:3, E:0, F:0, G:0}
  
  B:{A:6, B:0, C:2, D:0, E:4, F:0, G:0}
  
  C:{A:4, B:2, C:0, D:2, E:0, F:8, G:0}
  
  D:{A:3, B:0, C:2, D:0, E:3, F:0, G:0}
  
  E:{A:0, B:4, C:0, D:3, E:0, F:7, G:6}
  
  F:{A:0, B:0, C:8, D:0, E:7, F:0, G:6}
  
  G:{A:0, B:0, C:0, D:0, E:6, F:6, G:0}
  </code></pre>
  
  <hr>
  
  <pre><code>
  titles = []
  
  
  with open("graph.txt", "r") as file:
  
      for line in file:
          column=line.split(":")
          title=column[0]
          titles.append(title)
  </code></pre>
  
  <p>i need to make dictionaries for each title which i got like A,B,C</p>