title: TypeError in Python: unsupported format string passed to dict.__format__
body: <p>Being new to python, I'm writing a code where I need to display the results of a list based on the input from the user.</p>
  
  <p>For example, I have an employee list and I want to display the result of the employee whose name has been entered by the user.</p>
  
  <p>However, when I tried executing the same, it gives the following error:</p>
  
  <pre><code>TypeError:unsupported format string passed to dict.__format__
  </code></pre>
  
  <p>My code looks like this: </p>
  
  <pre><code>emp_dict = dict()
  emp_list = list()
  with open('m04_lab_profiles','r') as people:
      for p in people:
          tmp = p.strip().split(',')
          emp_info = dict()
          emp_info['Name'] = tmp[0]
          emp_info['Location'] = tmp[1]
          emp_info['Status'] = tmp[2]
          emp_info['Employer'] = tmp[3]
          emp_info['Job'] = tmp[4]
          emp_dict[tmp[0]] = emp_list
          emp_list.append(emp_info)
  
      for info in emp_list:
                print("{0:20}   {1:25}  {2:20}  {3:20}  {4:45}".format(info['Name'],info['Location'],info['Status'],info['Employer'],info['Job']))
  
   while True:
      name = input("Enter the name of employee: ")
      if len(name) == 0:
          break
      if name not in emp_dict:
          print("{} not found!".format(name))
          continue
      tmp = emp_dict[name]
      print("{0:20}   {1:25}  {2:20}  {3:45}  {4:45}".format(tmp[0], tmp[1], tmp[2], tmp[3], tmp[4]))
  </code></pre>