title: Python Phonebook program
body: <p>I have this program, and it is almost perfect but I need the dictionary to print on separate lines like so:</p>
  
  <pre><code>Please enter a name (or just press enter to end the input): Tom
  Please enter Tom's phone: 555-5555
  
  Please enter a name (or just press enter to end the input): Sue
  Please enter Sue's phone: 333-3333
  
  Please enter a name (or just press enter to end the input): Ann
  Please enter Ann's phone: 222-2222
  
  Please enter a name (or just press enter to end the input): 
  Thank you. 
  
  Your phonebook contains the following entries:
  
  Sue 333-3333
  
  Tom 555-5555
  
  Ann 222-2222  
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>def main():
  
  phoneBook = {}
  name = input("Please enter a name(or press enter to end input): ")
  while name != '':
      number = input("Please enter number: ")
      phoneBook[name] = number
      name = input("Please enter a name(or press enter to end input): ")
      if name == '':
          print("Thank You!")
  
  print("Your phonebook contains the following entries:\n",phoneBook)
  
  
  main()
  </code></pre>