title: Printing elements of dictionary line by line
body: <p>I have a dictionary in a file and i should write a python code to print the keys and values in seperate lines.(without using .keys() and .values().</p>
  
  <p>For eg: dict={"the":"1", "and":"2"} should return as</p>
  
  <pre><code>the:1          
  and:2 
  </code></pre>
  
  <p>Here is my code i tried. I am new to python dictionary. Please help me fix this. </p>
  
  <pre><code>dict2 = {}
  
  f= open("dict.txt", 'r')
      for line in f:
          it = line.split()
          k, v = it[0], it[1:]
          dict2[k] = v
  return (dict2)
  </code></pre>